{"id":"CVE-2024-53138","aliases":["CVE-2024-53138"],"related":[],"kind":"vulnerability","state":"published","title":"net/mlx5e: kTLS, Fix incorrect page refcounting","summary":"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\")).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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\")).","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net/mlx5e: kTLS, Fix wrong page refcounting El código de manejo de tx de kTLS usa una combinación de API get_page() y page_ref_inc() para incrementar la referencia de página. Pero en la ruta de lanzamiento (mlx5e_ktls_tx_handle_resync_dump_comp()), solo se usa put_page(). Este es un problema cuando se usan páginas de folios grandes: las referencias get_page() se almacenan en la página del folio mientras que las referencias page_ref_inc() se almacenan directamente en la página dada. En el lanzamiento, la página del folio se desreferenciará demasiadas veces. Esto se encontró al hacer pruebas de kTLS con sendfile() + ZC cuando el archivo servido se leyó desde NFS en un kernel con soporte para folios grandes de NFS (commit 49b29a573da8 (\"nfs: agregar soporte para folios grandes\")).","source":"nvd"}],"published":"2024-12-04T14:20:43.395Z","modified":"2026-10-15T22:18:00.253Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"84d1bb2b139e0184b1754aa1b5776186b475fce8","fixed":"a0ddb20a748b122ea86003485f7992fa5e84cc95","status":"affected"},{"type":"git","introduced":"84d1bb2b139e0184b1754aa1b5776186b475fce8","fixed":"ffad2ac8c859c1c1a981fe9c4f7ff925db684a43","status":"affected"},{"type":"git","introduced":"84d1bb2b139e0184b1754aa1b5776186b475fce8","fixed":"c7b97f9e794d8e2bbaa50e1d6c230196fd214b5e","status":"affected"},{"type":"git","introduced":"84d1bb2b139e0184b1754aa1b5776186b475fce8","fixed":"69fbd07f17b0fdaf8970bc705f5bf115c297839d","status":"affected"},{"type":"git","introduced":"84d1bb2b139e0184b1754aa1b5776186b475fce8","fixed":"93a14620b97c911489a5b008782f3d9b0c4aeff4","status":"affected"},{"type":"git","introduced":"84d1bb2b139e0184b1754aa1b5776186b475fce8","fixed":"2723e8b2cbd486cb96e5a61b22473f7fd62e18df","status":"affected"},{"type":"git","introduced":"84d1bb2b139e0184b1754aa1b5776186b475fce8","fixed":"dd6e972cc5890d91d6749bb48e3912721c4e4b25","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.4","status":"unaffected"},{"type":"semver","introduced":"5.4.287","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.231","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.174","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.119","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.63","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.10","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.4","fixed":"6.1.119"},{"status":"affected","introduced":"6.2","fixed":"6.6.63"},{"status":"affected","introduced":"6.7","fixed":"6.11.10"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/a0ddb20a748b122ea86003485f7992fa5e84cc95","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ffad2ac8c859c1c1a981fe9c4f7ff925db684a43","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c7b97f9e794d8e2bbaa50e1d6c230196fd214b5e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/69fbd07f17b0fdaf8970bc705f5bf115c297839d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/93a14620b97c911489a5b008782f3d9b0c4aeff4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2723e8b2cbd486cb96e5a61b22473f7fd62e18df","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dd6e972cc5890d91d6749bb48e3912721c4e4b25","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-10-15T21:40:46.946Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-53138","url":"https://www.cve.org/CVERecord?id=CVE-2024-53138","licence":"CVE Terms of Use","modified":"2026-10-15T21:41:46.240Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-53138","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53138","licence":"Public domain","modified":"2026-10-15T22:18:00.253Z"}],"updatedAt":"2026-11-25T22:58:49.706Z","epss":{"score":0.01004,"percentile":0.61975,"date":"2026-11-30T12:00:22.000Z"}}