# CVE-2024-43864: net/mlx5e: Fix CT entry update leaks of modify header context

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2024-08-20T23:45:28.833Z
- Modified: 2026-08-05T11:36:51.314Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

net/mlx5e: Fix CT entry update leaks of modify header context

The cited commit allocates a new modify header to replace the old
one when updating CT entry. But if failed to allocate a new one, eg.
exceed the max number firmware can support, modify header will be
an error pointer that will trigger a panic when deallocating it. And
the old modify header point is copied to old attr. When the old
attr is freed, the old modify header is lost.

Fix it by restoring the old attr to attr when failed to allocate a
new modify header context. So when the CT entry is freed, the right
modify header context will be freed. And the panic of accessing
error pointer is also fixed.

(As written by CVE List.)

## Affected

- Linux Linux: from 94ceffb48eac7692677d8093dcde6965b70c4b35 before daab2cc17b6b6ab158566bba037e9551fd432b59; from 94ceffb48eac7692677d8093dcde6965b70c4b35 before 89064d09c56b44c668509bf793c410484f63f5ad; from 94ceffb48eac7692677d8093dcde6965b70c4b35 before 025f2b85a5e5a46df14ecf162c3c80a957a36d0b; 6.3 (not affected: before 6.3; from 6.6.45 up to 6.6.*; from 6.10.4 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 6.3 before 6.6.45; from 6.7 before 6.10.4; 6.11

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/daab2cc17b6b6ab158566bba037e9551fd432b59> (patch)
- <https://git.kernel.org/stable/c/89064d09c56b44c668509bf793c410484f63f5ad> (patch)
- <https://git.kernel.org/stable/c/025f2b85a5e5a46df14ecf162c3c80a957a36d0b> (patch)

## Sources

- CVE List: [CVE-2024-43864](https://www.cve.org/CVERecord?id=CVE-2024-43864), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-43864](https://nvd.nist.gov/vuln/detail/CVE-2024-43864), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-43864 · Whole record: https://cve.day/CVE-2024-43864.json · Rebuilt by cve.day 2026-11-25T22:58:44.603Z
