# CVE-2024-53138: net/mlx5e: kTLS, Fix incorrect page refcounting

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2024-12-04 · Modified: 2026-10-15
- Aliases: UBUNTU-CVE-2024-53138, DEBIAN-CVE-2024-53138
- Record: https://cvemate.com/vulnerability/CVE-2024-53138 · JSON: https://cvemate.com/vulnerability/CVE-2024-53138/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

net/mlx5e: kTLS, Fix incorrect page refcounting

The kTLS tx handling code is using a mix of get_page() and
page_ref_inc() APIs to increment the page reference. But on the release
path (mlx5e_ktls_tx_handle_resync_dump_comp()), only put_page() is used.

This is an issue when using pages from large folios: the get_page()
references are stored on the folio page while the page_ref_inc()
references are stored directly in the given page. On release the folio
page will be dereferenced too many times.

This was found while doing kTLS testing with sendfile() + ZC when the
served file was read from NFS on a kernel with NFS large folios support
(commit 49b29a573da8 ("nfs: add support for large folios")).
```

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.551%, percentile 47.516%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 134)

- debian linux (Debian): \< 6.1.119-1 \| \< 6.11.10-1
- ubuntu linux (Ubuntu): \< 5.4.0-211.231 \| \< 5.15.0-135.146 \| \< 6.8.0-58.60
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.4.0-1142.152 \| \< 5.15.0-1080.87 \| \< 6.8.0-1027.29
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1080.87~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1142.152~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1027.29~22.04.1
- ubuntu linux-aws-fips (Ubuntu): \< 5.4.0-1142.153+fips1 \| All versions (No fix recorded) \| \< 5.15.0-1080.87+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1147.154 \| \< 5.15.0-1084.93 \| \< 6.8.0-1027.32
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1086.95~20.04.1

## References (first 20 of 48)

- <https://git.kernel.org/stable/c/a0ddb20a748b122ea86003485f7992fa5e84cc95>
- <https://git.kernel.org/stable/c/ffad2ac8c859c1c1a981fe9c4f7ff925db684a43>
- <https://git.kernel.org/stable/c/c7b97f9e794d8e2bbaa50e1d6c230196fd214b5e>
- <https://git.kernel.org/stable/c/69fbd07f17b0fdaf8970bc705f5bf115c297839d>
- <https://git.kernel.org/stable/c/93a14620b97c911489a5b008782f3d9b0c4aeff4>
- <https://git.kernel.org/stable/c/2723e8b2cbd486cb96e5a61b22473f7fd62e18df>
- <https://git.kernel.org/stable/c/dd6e972cc5890d91d6749bb48e3912721c4e4b25>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://ubuntu.com/security/CVE-2024-53138>
- <https://www.cve.org/CVERecord?id=CVE-2024-53138>
- <https://git.kernel.org/linus/dd6e972cc5890d91d6749bb48e3912721c4e4b25>
- <https://ubuntu.com/security/notices/USN-7276-1>
- <https://ubuntu.com/security/notices/USN-7277-1>
- <https://ubuntu.com/security/notices/USN-7310-1>
- <https://ubuntu.com/security/notices/USN-7387-1>
- <https://ubuntu.com/security/notices/USN-7388-1>
- <https://ubuntu.com/security/notices/USN-7389-1>
- <https://ubuntu.com/security/notices/USN-7390-1>
- <https://ubuntu.com/security/notices/USN-7387-2>

---

Data as of 2026-12-05T04:11:55.497Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
