# CVE-2024-36281: net/mlx5: Use mlx5\_ipsec\_rx\_status\_destroy to correctly delete status rules

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-06-21T10:18:07.695Z
- **Modified:** 2026-06-17T07:36:25.880Z

## Who should check

- Anyone running Linux \>= 20af7afcd8b85a4cb413072d631bf9a6469eee3a, \< b0a15cde37a8388e57573686f650a17208ae1212; \>= 94af50c0a9bb961fe93cf0fdd14eb0883da86721, \< cc9ac559f2e21894c21ac5b0c85fb24a5cab266c; \>= 94af50c0a9bb961fe93cf0fdd14eb0883da86721, \< 16d66a4fa81da07bc4ed19f4e53b87263c2f8d38; \>= 6.6.8, \< 6.6.33
- Anyone running Linux 6.7

## Description

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

net/mlx5: Use mlx5\_ipsec\_rx\_status\_destroy to correctly delete status rules

rx\_create no longer allocates a modify\_hdr instance that needs to be
cleaned up. The mlx5\_modify\_header\_dealloc call will lead to a NULL pointer
dereference. A leak in the rules also previously occurred since there are
now two rules populated related to status.

  BUG: kernel NULL pointer dereference, address: 0000000000000000
  \#PF: supervisor read access in kernel mode
  \#PF: error\_code(0x0000) - not-present page
  PGD 109907067 P4D 109907067 PUD 116890067 PMD 0
  Oops: 0000 \[\#1\] SMP
  CPU: 1 PID: 484 Comm: ip Not tainted 6.9.0-rc2-rrameshbabu+ \#254
  Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS Arch Linux 1.16.3-1-1 04/01/2014
  RIP: 0010:mlx5\_modify\_header\_dealloc+0xd/0x70
  \<snip\>
  Call Trace:
   \<TASK\>
   ? show\_regs+0x60/0x70
   ? \_\_die+0x24/0x70
   ? page\_fault\_oops+0x15f/0x430
   ? free\_to\_partial\_list.constprop.0+0x79/0x150
   ? do\_user\_addr\_fault+0x2c9/0x5c0
   ? exc\_page\_fault+0x63/0x110
   ? asm\_exc\_page\_fault+0x27/0x30
   ? mlx5\_modify\_header\_dealloc+0xd/0x70
   rx\_create+0x374/0x590
   rx\_add\_rule+0x3ad/0x500
   ? rx\_add\_rule+0x3ad/0x500
   ? mlx5\_cmd\_exec+0x2c/0x40
   ? mlx5\_create\_ipsec\_obj+0xd6/0x200
   mlx5e\_accel\_ipsec\_fs\_add\_rule+0x31/0xf0
   mlx5e\_xfrm\_add\_state+0x426/0xc00
  \<snip\>

## Affected and fixed versions

- Linux: \>= 20af7afcd8b85a4cb413072d631bf9a6469eee3a, \< b0a15cde37a8388e57573686f650a17208ae1212; \>= 94af50c0a9bb961fe93cf0fdd14eb0883da86721, \< cc9ac559f2e21894c21ac5b0c85fb24a5cab266c; \>= 94af50c0a9bb961fe93cf0fdd14eb0883da86721, \< 16d66a4fa81da07bc4ed19f4e53b87263c2f8d38; \>= 6.6.8, \< 6.6.33 (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

- Upgrade Linux to 6.6.33 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-36281. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-36281.md
Affected: Linux >= 20af7afcd8b85a4cb413072d631bf9a6469eee3a, < b0a15cde37a8388e57573686f650a17208ae1212; >= 94af50c0a9bb961fe93cf0fdd14eb0883da86721, < cc9ac559f2e21894c21ac5b0c85fb24a5cab266c; >= 94af50c0a9bb961fe93cf0fdd14eb0883da86721, < 16d66a4fa81da07bc4ed19f4e53b87263c2f8d38; >= 6.6.8, < 6.6.33; Linux …
Fixed in: Linux 16d66a4fa81da07bc4ed19f4e53b87263c2f8d38, Linux 6.6.33

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-36281 being exploited?

There is no confirmed exploitation: CVE-2024-36281 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-36281?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-36281?

Linux \>= 20af7afcd8b85a4cb413072d631bf9a6469eee3a, \< b0a15cde37a8388e57573686f650a17208ae1212; \>= 94af50c0a9bb961fe93cf0fdd14eb0883da86721, \< cc9ac559f2e21894c21ac5b0c85fb24a5cab266c; \>= 94af50c0a9bb961fe93cf0fdd14eb0883da86721, \< 16d66a4fa81da07bc4ed19f4e53b87263c2f8d38; \>= 6.6.8, \< 6.6.33; Linux 6.7.

### Is there a fix for CVE-2024-36281?

Yes. Fixed in Linux 16d66a4fa81da07bc4ed19f4e53b87263c2f8d38, Linux 6.6.33. Upgrade Linux to 6.6.33 or later.

### How do I check if I'm affected by CVE-2024-36281?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/b0a15cde37a8388e57573686f650a17208ae1212>
- patch: <https://git.kernel.org/stable/c/cc9ac559f2e21894c21ac5b0c85fb24a5cab266c>
- patch: <https://git.kernel.org/stable/c/16d66a4fa81da07bc4ed19f4e53b87263c2f8d38>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-36281>

HTML: <https://flawdb.com/CVE-2024-36281> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-36281>
