CVE-2024-56615: kernel: bpf: fix OOB devmap writes when deleting elements | OX.Radar
Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2024-56615

kernel: bpf: fix OOB devmap writes when deleting elements

Overview

Published
27 Dec 2024
Modified
17 Jun 2026
High CVE
0 Registry packages
280 OS packages
12 Linux distributions
Yes Fix available

Description

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

bpf: fix OOB devmap writes when deleting elements

Jordy reported issue against XSKMAP which also applies to DEVMAP - the
index used for accessing map entry, due to being a signed integer,
causes the OOB writes. Fix is simple as changing the type from int to
u32, however, when compared to XSKMAP case, one more thing needs to be
addressed.

When map is released from system via dev_map_free(), we iterate through
all of the entries and an iterator variable is also an int, which
implies OOB accesses. Again, change it to be u32.

Example splat below:

[ 160.724676] BUG: unable to handle page fault for address: ffffc8fc2c001000
[ 160.731662] #PF: supervisor read access in kernel mode
[ 160.736876] #PF: error_code(0x0000) - not-present page
[ 160.742095] PGD 0 P4D 0
[ 160.744678] Oops: Oops: 0000 [#1] PREEMPT SMP
[ 160.749106] CPU: 1 UID: 0 PID: 520 Comm: kworker/u145:12 Not tainted 6.12.0-rc1+ #487
[ 160.757050] Hardware name: Intel Corporation S2600WFT/S2600WFT, BIOS SE5C620.86B.02.01.0008.031920191559 03/19/2019
[ 160.767642] Workqueue: events_unbound bpf_map_free_deferred
[ 160.773308] RIP: 0010:dev_map_free+0x77/0x170
[ 160.777735] Code: 00 e8 fd 91 ed ff e8 b8 73 ed ff 41 83 7d 18 19 74 6e 41 8b 45 24 49 8b bd f8 00 00 00 31 db 85 c0 74 48 48 63 c3 48 8d 04 c7 <48> 8b 28 48 85 ed 74 30 48 8b 7d 18 48 85 ff 74 05 e8 b3 52 fa ff
[ 160.796777] RSP: 0018:ffffc9000ee1fe38 EFLAGS: 00010202
[ 160.802086] RAX: ffffc8fc2c001000 RBX: 0000000080000000 RCX: 0000000000000024
[ 160.809331] RDX: 0000000000000000 RSI: 0000000000000024 RDI: ffffc9002c001000
[ 160.816576] RBP: 0000000000000000 R08: 0000000000000023 R09: 0000000000000001
[ 160.823823] R10: 0000000000000001 R11: 00000000000ee6b2 R12: dead000000000122
[ 160.831066] R13: ffff88810c928e00 R14: ffff8881002df405 R15: 0000000000000000
[ 160.838310] FS: 0000000000000000(0000) GS:ffff8897e0c40000(0000) knlGS:0000000000000000
[ 160.846528] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 160.852357] CR2: ffffc8fc2c001000 CR3: 0000000005c32006 CR4: 00000000007726f0
[ 160.859604] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 160.866847] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 160.874092] PKRU: 55555554
[ 160.876847] Call Trace:
[ 160.879338] <TASK>
[ 160.881477] ? __die+0x20/0x60
[ 160.884586] ? page_fault_oops+0x15a/0x450
[ 160.888746] ? search_extable+0x22/0x30
[ 160.892647] ? search_bpf_extables+0x5f/0x80
[ 160.896988] ? exc_page_fault+0xa9/0x140
[ 160.900973] ? asm_exc_page_fault+0x22/0x30
[ 160.905232] ? dev_map_free+0x77/0x170
[ 160.909043] ? dev_map_free+0x58/0x170
[ 160.912857] bpf_map_free_deferred+0x51/0x90
[ 160.917196] process_one_work+0x142/0x370
[ 160.921272] worker_thread+0x29e/0x3b0
[ 160.925082] ? rescuer_thread+0x4b0/0x4b0
[ 160.929157] kthread+0xd4/0x110
[ 160.932355] ? kthread_park+0x80/0x80
[ 160.936079] ret_from_fork+0x2d/0x50
[ 160.943396] ? kthread_park+0x80/0x80
[ 160.950803] ret_from_fork_asm+0x11/0x20
[ 160.958482] </TASK>

Source: OX vulnerability database

Severity

7.8 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weakness: CWE-787

Affected packages · 0

No registry package. This ID affects operating system packages only.

Operating systems · 143 fixes

Azure Linux 1 release · 1 package

fixed 1
kernel
Azure Linux fixes for CVE-2024-56615
ReleasePackageFixed in
3.0 kernel 0:6.6.76.1-1.azl3

Oracle Linux 3 releases · 2 packages

fixed 4
kernel-uek bpftool
Oracle Linux fixes for CVE-2024-56615
ReleasePackageFixed in
7 kernel-uek +7 5.4.17-2136.340.4.1.el7uek
8 bpftool +13 5.15.0-305.176.4.el8uek
9 bpftool +3 5.15.0-305.176.4.el9uek
9 kernel-uek +34 6.12.0-102.36.5.2.el9uek

Photon OS 2 releases · 1 package

fixed 2
bpftool
Photon OS fixes for CVE-2024-56615
ReleasePackageFixed in
4.0 bpftool +9 5.10.232-1.ph4
5.0 bpftool +10 6.1.124-1.ph5

Red Hat 3 releases · 3 packages

eol 2 affected 1 fixed 5
bpftool kernel kernel-rt
Red Hat fixes for CVE-2024-56615
ReleasePackageFixed inAdvisory
7 bpftool +25 eol —
8 bpftool +45 eol —
9 bpftool +105 affected —
9 kernel +43 0:5.14.0-284.122.1.el9_2 RHSA-2025:10547
9 kernel-rt +13 0:5.14.0-284.122.1.rt14.407.el9_2 RHSA-2025:10536
9 kernel +60 0:5.14.0-427.74.1.el9_4 RHSA-2025:9584

2 more rows

SUSE Linux Enterprise 2 releases · 7 packages

fixed 8
kgraft-patch-4-12-14-122-247-default cluster-md-kmp-default kernel-livepatch-6-4-0-150600-10-26-rt kernel-livepatch-6-4-0-150600-23-38-default kernel-default-base kernel-azure +1
SUSE Linux Enterprise fixes for CVE-2024-56615
ReleasePackageFixed inAdvisory
12.5 kgraft-patch-4-12-14-122-247-default 1-8.3.1 SUSE-SU-2025:0565-1
12.5 cluster-md-kmp-default +13 4.12.14-122.247.1 SUSE-SU-2025:0565-1
15.6 kernel-livepatch-6-4-0-150600-10-26-rt 1-150600.1.3.1 SUSE-SU-2025:0557-1
15.6 kernel-livepatch-6-4-0-150600-23-38-default 1-150600.13.3.2 SUSE-SU-2025:0499-1
15.6 cluster-md-kmp-default +18 6.4.0-150600.23.38.1 SUSE-SU-2025:0499-1
15.6 kernel-default-base 6.4.0-150600.23.38.1.150600.12.16.2 SUSE-SU-2025:0499-1

2 more rows

SUSE Linux Enterprise Micro 2 releases · 5 packages

fixed 10
kernel-livepatch-6-4-0-25-rt kernel-livepatch-6-4-0-25-default kernel-default-base kernel-default kernel-devel-rt
SUSE Linux Enterprise Micro fixes for CVE-2024-56615
ReleasePackageFixed inAdvisory
6.0 kernel-livepatch-6-4-0-25-rt 1-1.1 SUSE-SU-2025:20166-1
6.0 kernel-livepatch-6-4-0-25-default 1-1.2 SUSE-SU-2025:20165-1
6.0 kernel-default-base 6.4.0-24.1.21.4 SUSE-SU-2025:20165-1
6.0 kernel-default +5 6.4.0-25.1 SUSE-SU-2025:20165-1
6.0 kernel-devel-rt +3 6.4.0-25.1 SUSE-SU-2025:20166-1
6.1 kernel-livepatch-6-4-0-25-rt 1-1.1 SUSE-SU-2025:20249-1

4 more rows

amazon linux 1 release · 2 packages

fixed 2
kernel-livepatch-6-1-124-134-200 bpftool
amazon linux fixes for CVE-2024-56615
ReleasePackageFixed in
2023 kernel-livepatch-6-1-124-134-200 1.0-0.amzn2023
2023 bpftool +19 6.1.124-134.200.amzn2023

debian 4 releases · 2 packages

fixed 5
linux linux-6-1
debian fixes for CVE-2024-56615
ReleasePackageFixed in
11 linux 5.10.234-1
11 linux-6-1 6.1.128-1~deb11u1
12 linux 6.1.123-1
13 linux 6.12.5-1
14 linux 6.12.5-1

echo 1 release · 1 package

fixed 1
linux
echo fixes for CVE-2024-56615
ReleasePackageFixed in
linux 6.12.5-1

root.io debian 3 releases · 1 package

fixed 3
rootio-linux
root.io debian fixes for CVE-2024-56615
ReleasePackageFixed in
11 rootio-linux 5.10.234-1
12 rootio-linux 6.1.123-1
13 rootio-linux 6.12.5-1

root.io ubuntu 2 releases · 1 package

fixed 2
rootio-linux
root.io ubuntu fixes for CVE-2024-56615
ReleasePackageFixed in
22.04 rootio-linux 5.15.0-135.146
24.04 rootio-linux 6.8.0-58.60

ubuntu 5 releases · 55 packages

fixed 97
linux-oracle linux-kvm linux-gcp-4-15 linux-aws linux-azure-4-15 linux +49
ubuntu fixes for CVE-2024-56615
ReleasePackageFixed in
18.04-ESM linux-oracle 4.15.0-1141.152
18.04-ESM linux-kvm 4.15.0-1162.167
18.04-ESM linux-gcp-4-15 4.15.0-1172.189
18.04-ESM linux-aws 4.15.0-1179.192
18.04-ESM linux-azure-4-15 4.15.0-1187.202
18.04-ESM linux 4.15.0-236.248

91 more rows

References

Show all 54 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.