# CVE-2024-56614: xsk: fix OOB map writes when deleting elements

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.32% (percentile 18, 2026-11-28)
- **CWE:** CWE-787
- **Published:** 2024-12-27T14:51:19.154Z
- **Modified:** 2026-06-17T08:12:33.170Z

## Who should check

- Anyone running Linux \>= fbfc504a24f53f7ebe128ab55cb5dba634f4ece8, \< 4d03f705e9d7aabebc6bfa5810f8aab6d176cbb7; \>= fbfc504a24f53f7ebe128ab55cb5dba634f4ece8, \< ed08c93d5a9801cc8f224a046411fd603c538d07; \>= fbfc504a24f53f7ebe128ab55cb5dba634f4ece8, \< f8abd03f83d5fe81e76eb93e2c4373eb9f75fd8a; \>= fbfc504a24f53f7ebe128ab55cb5dba634f4ece8, \< d486b5741d987d3e0e6be4ac22cafdf94e6d1a47; \>= fbfc504a24f53f7ebe128ab55cb5dba634f4ece8, \< 32cd3db7de97c0c7a018756ce66244342fd583f0
- Anyone running Linux 4.18

## Description

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

xsk: fix OOB map writes when deleting elements

Jordy says:

"
In the xsk\_map\_delete\_elem function an unsigned integer
(map-\>max\_entries) is compared with a user-controlled signed integer
(k). Due to implicit type conversion, a large unsigned value for
map-\>max\_entries can bypass the intended bounds check:

	if (k \>= map-\>max\_entries)
		return -EINVAL;

This allows k to hold a negative value (between -2147483648 and -2),
which is then used as an array index in m-\>xsk\_map\[k\], which results
in an out-of-bounds access.

	spin\_lock\_bh(&m-\>lock);
	map\_entry = &m-\>xsk\_map\[k\]; // Out-of-bounds map\_entry
	old\_xs = unrcu\_pointer(xchg(map\_entry, NULL));  // Oob write
	if (old\_xs)
		xsk\_map\_sock\_delete(old\_xs, map\_entry);
	spin\_unlock\_bh(&m-\>lock);

The xchg operation can then be used to cause an out-of-bounds write.
Moreover, the invalid map\_entry passed to xsk\_map\_sock\_delete can lead
to further memory corruption.
"

It indeed results in following splat:

\[76612.897343\] BUG: unable to handle page fault for address: ffffc8fc2e461108
\[76612.904330\] \#PF: supervisor write access in kernel mode
\[76612.909639\] \#PF: error\_code(0x0002) - not-present page
\[76612.914855\] PGD 0 P4D 0
\[76612.917431\] Oops: Oops: 0002 \[\#1\] PREEMPT SMP
\[76612.921859\] CPU: 11 UID: 0 PID: 10318 Comm: a.out Not tainted 6.12.0-rc1+ \#470
\[76612.929189\] Hardware name: Intel Corporation S2600WFT/S2600WFT, BIOS SE5C620.86B.02.01.0008.031920191559 03/19/2019
\[76612.939781\] RIP: 0010:xsk\_map\_delete\_elem+0x2d/0x60
\[76612.944738\] Code: 00 00 41 54 55 53 48 63 2e 3b 6f 24 73 38 4c 8d a7 f8 00 00 00 48 89 fb 4c 89 e7 e8 2d bf 05 00 48 8d b4 eb 00 01 00 00 31 ff \<48\> 87 3e 48 85 ff 74 05 e8 16 ff ff ff 4c 89 e7 e8 3e bc 05 00 31
\[76612.963774\] RSP: 0018:ffffc9002e407df8 EFLAGS: 00010246
\[76612.969079\] RAX: 0000000000000000 RBX: ffffc9002e461000 RCX: 0000000000000000
\[76612.976323\] RDX: 0000000000000001 RSI: ffffc8fc2e461108 RDI: 0000000000000000
\[76612.983569\] RBP: ffffffff80000001 R08: 0000000000000000 R09: 0000000000000007
\[76612.990812\] R10: ffffc9002e407e18 R11: ffff888108a38858 R12: ffffc9002e4610f8
\[76612.998060\] R13: ffff888108a38858 R14: 00007ffd1ae0ac78 R15: ffffc9002e4610c0
\[76613.005303\] FS:  00007f80b6f59740(0000) GS:ffff8897e0ec0000(0000) knlGS:0000000000000000
\[76613.013517\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[76613.019349\] CR2: ffffc8fc2e461108 CR3: 000000011e3ef001 CR4: 00000000007726f0
\[76613.026595\] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
\[76613.033841\] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
\[76613.041086\] PKRU: 55555554
\[76613.043842\] Call Trace:
\[76613.046331\]  \<TASK\>
\[76613.048468\]  ? \_\_die+0x20/0x60
\[76613.051581\]  ? page\_fault\_oops+0x15a/0x450
\[76613.055747\]  ? search\_extable+0x22/0x30
\[76613.059649\]  ? search\_bpf\_extables+0x5f/0x80
\[76613.063988\]  ? exc\_page\_fault+0xa9/0x140
\[76613.067975\]  ? asm\_exc\_page\_fault+0x22/0x30
\[76613.072229\]  ? xsk\_map\_delete\_elem+0x2d/0x60
\[76613.076573\]  ? xsk\_map\_delete\_elem+0x23/0x60
\[76613.080914\]  \_\_sys\_bpf+0x19b7/0x23c0
\[76613.084555\]  \_\_x64\_sys\_bpf+0x1a/0x20
\[76613.088194\]  do\_syscall\_64+0x37/0xb0
\[76613.091832\]  entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53
\[76613.096962\] RIP: 0033:0x7f80b6d1e88d
\[76613.100592\] Code: 5b 41 5c c3 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 \<48\> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 73 b5 0f 00 f7 d8 64 89 01 48
\[76613.119631\] RSP: 002b:00007ffd1ae0ac68 EFLAGS: 00000206 ORIG\_RAX: 0000000000000141
\[76613.131330\] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f80b6d1e88d
\[76613.142632\] RDX: 0000000000000098 RSI: 00007ffd1ae0ad20 RDI: 0000000000000003
\[76613.153967\] RBP: 00007ffd1ae0adc0 R08: 0000000000000000 R09: 0000000000000000
\[76613.166030\] R10: 00007f80b6f77040 R11: 0000000000000206 R12: 00007ffd1ae0aed8
\[76613.177130\] R13: 000055ddf42ce1e9 R14: 000055ddf42d0d98 R15: 00
---truncated---

## Affected and fixed versions

- Linux: \>= fbfc504a24f53f7ebe128ab55cb5dba634f4ece8, \< 4d03f705e9d7aabebc6bfa5810f8aab6d176cbb7; \>= fbfc504a24f53f7ebe128ab55cb5dba634f4ece8, \< ed08c93d5a9801cc8f224a046411fd603c538d07; \>= fbfc504a24f53f7ebe128ab55cb5dba634f4ece8, \< f8abd03f83d5fe81e76eb93e2c4373eb9f75fd8a; \>= fbfc504a24f53f7ebe128ab55cb5dba634f4ece8, \< d486b5741d987d3e0e6be4ac22cafdf94e6d1a47; \>= fbfc504a24f53f7ebe128ab55cb5dba634f4ece8, \< 32cd3db7de97c0c7a018756ce66244342fd583f0 (cvelist)
- Linux: 4.18 (cvelist)

## Mitigation

- Upgrade Linux to 32cd3db7de97c0c7a018756ce66244342fd583f0 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-56614. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56614.md
Affected: Linux >= fbfc504a24f53f7ebe128ab55cb5dba634f4ece8, < 4d03f705e9d7aabebc6bfa5810f8aab6d176cbb7; >= fbfc504a24f53f7ebe128ab55cb5dba634f4ece8, < ed08c93d5a9801cc8f224a046411fd603c538d07; >= fbfc504a24f53f7ebe128ab55cb5dba634f4ece8, < f8abd03f83d5fe81e76eb93e2c4373eb9f75fd8a; >= fbfc504a24f53f7ebe128ab…
Fixed in: Linux 4d03f705e9d7aabebc6bfa5810f8aab6d176cbb7, Linux 32cd3db7de97c0c7a018756ce66244342fd583f0

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-56614 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= fbfc504a24f53f7ebe128ab55cb5dba634f4ece8, \< 4d03f705e9d7aabebc6bfa5810f8aab6d176cbb7; \>= fbfc504a24f53f7ebe128ab55cb5dba634f4ece8, \< ed08c93d5a9801cc8f224a046411fd603c538d07; \>= fbfc504a24f53f7ebe128ab55cb5dba634f4ece8, \< f8abd03f83d5fe81e76eb93e2c4373eb9f75fd8a; \>= fbfc504a24f53f7ebe128ab55cb5dba634f4ece8, \< d486b5741d987d3e0e6be4ac22cafdf94e6d1a47; \>= fbfc504a24f53f7ebe128ab55cb5dba634f4ece8, \< 32cd3db7de97c0c7a018756ce66244342fd583f0; Linux 4.18.

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

Yes. Fixed in Linux 4d03f705e9d7aabebc6bfa5810f8aab6d176cbb7, Linux 32cd3db7de97c0c7a018756ce66244342fd583f0. Upgrade Linux to 32cd3db7de97c0c7a018756ce66244342fd583f0 or later.

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

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/4d03f705e9d7aabebc6bfa5810f8aab6d176cbb7>
- patch: <https://git.kernel.org/stable/c/ed08c93d5a9801cc8f224a046411fd603c538d07>
- patch: <https://git.kernel.org/stable/c/f8abd03f83d5fe81e76eb93e2c4373eb9f75fd8a>
- patch: <https://git.kernel.org/stable/c/d486b5741d987d3e0e6be4ac22cafdf94e6d1a47>
- patch: <https://git.kernel.org/stable/c/32cd3db7de97c0c7a018756ce66244342fd583f0>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>

## 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-56614>

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