{"id":"CVE-2024-53138","summary":"net/mlx5e: kTLS, Fix incorrect page refcounting","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5e: kTLS, Fix incorrect page refcounting\n\nThe kTLS tx handling code is using a mix of get_page() and\npage_ref_inc() APIs to increment the page reference. But on the release\npath (mlx5e_ktls_tx_handle_resync_dump_comp()), only put_page() is used.\n\nThis is an issue when using pages from large folios: the get_page()\nreferences are stored on the folio page while the page_ref_inc()\nreferences are stored directly in the given page. On release the folio\npage will be dereferenced too many times.\n\nThis was found while doing kTLS testing with sendfile() + ZC when the\nserved file was read from NFS on a kernel with NFS large folios support\n(commit 49b29a573da8 (\"nfs: add support for large folios\")).","modified":"2026-05-07T04:16:34.360100Z","published":"2024-12-04T14:20:43.395Z","related":["SUSE-SU-2024:4314-1","SUSE-SU-2024:4316-1","SUSE-SU-2024:4318-1","SUSE-SU-2025:0289-1","SUSE-SU-2025:0556-1","SUSE-SU-2025:0577-1","SUSE-SU-2025:0577-2","SUSE-SU-2025:20163-1","SUSE-SU-2025:20164-1","SUSE-SU-2025:20246-1","SUSE-SU-2025:20247-1","USN-7276-1","USN-7277-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53138.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2723e8b2cbd486cb96e5a61b22473f7fd62e18df"},{"type":"WEB","url":"https://git.kernel.org/stable/c/69fbd07f17b0fdaf8970bc705f5bf115c297839d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/93a14620b97c911489a5b008782f3d9b0c4aeff4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a0ddb20a748b122ea86003485f7992fa5e84cc95"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c7b97f9e794d8e2bbaa50e1d6c230196fd214b5e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dd6e972cc5890d91d6749bb48e3912721c4e4b25"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ffad2ac8c859c1c1a981fe9c4f7ff925db684a43"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53138.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53138"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"84d1bb2b139e0184b1754aa1b5776186b475fce8"},{"fixed":"a0ddb20a748b122ea86003485f7992fa5e84cc95"},{"fixed":"ffad2ac8c859c1c1a981fe9c4f7ff925db684a43"},{"fixed":"c7b97f9e794d8e2bbaa50e1d6c230196fd214b5e"},{"fixed":"69fbd07f17b0fdaf8970bc705f5bf115c297839d"},{"fixed":"93a14620b97c911489a5b008782f3d9b0c4aeff4"},{"fixed":"2723e8b2cbd486cb96e5a61b22473f7fd62e18df"},{"fixed":"dd6e972cc5890d91d6749bb48e3912721c4e4b25"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-53138.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.4.0"},{"fixed":"5.4.287"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.231"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.174"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.11.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-53138.json"}}],"schema_version":"1.7.5"}