CVE-2024-26731

bpf, sockmap: Fix NULL pointer dereference in sk_psock_verdict_data_ready()

MEDIUM
5.3
CVSS Score
Published: April 3, 2024 at 05:00 PM UTC
Updated: June 17, 2026 at 07:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 0.8%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: Fix NULL pointer dereference in sk_psock_verdict_data_ready() syzbot reported the following NULL pointer dereference issue [1]: BUG: kernel NULL pointer dereference, address: 0000000000000000 [...] RIP: 0010:0x0 [...] Call Trace: <TASK> sk_psock_verdict_data_ready+0x232/0x340 net/core/skmsg.c:1230 unix_stream_sendmsg+0x9b4/0x1230 net/unix/af_unix.c:2293 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2584 ___sys_sendmsg net/socket.c:2638 [inline] __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2667 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 If sk_psock_verdict_data_ready() and sk_psock_stop_verdict() are called concurrently, psock->saved_data_ready can be NULL, causing the above issue. This patch fixes this issue by calling the appropriate data ready function using the sk_psock_data_ready() helper and protecting it from concurrency with sk->sk_callback_lock.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 6.3.66.1.32 ≤ v < 6.1.806.3.6 ≤ v < 6.46.3.6 ≤ v < 6.6.196.4 ≤ v < 6.6.196.4 ≤ v < 6.7.76.4 ≤ v < 6.86.7 ≤ v < 6.7.76.1.326.3.66.8 rc16.8 rc26.8 rc36.8 rc46.8 rc56df7f764cd3cf5a03a4a47b23be47e57e41fcd85d3cbd7c571446a876aefd8320500300b2c951c58dd628fc697ee59b76bd3877c4bd13f07ccc3776f
Vendor states this is fixed in 4588b13abcbd561ec67f5b3c1cb2eff690990a54 (fixed)
Vendor states this is fixed in 4cd12c6065dfcdeba10f49949bffcf383b3952d8 (fixed)
Vendor states this is fixed in 9b099ed46dcaf1403c531ff02c3d7400fa37fa26 (fixed)
Vendor states this is fixed in d61608a4e394f23e0dca099df9eb8e555453d949 (fixed)
Vendor states this is fixed in 6.1.80 (unaffected)
Vendor states this is fixed in 6.4 (unaffected)
Vendor states this is fixed in 6.6.19 (unaffected)
Vendor states this is fixed in 6.7.7 (unaffected)
Vendor states this is fixed in 6.8 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4588b13abcbd561ec67f5b3c1cb2eff690990a54
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4cd12c6065dfcdeba10f49949bffcf383b3952d8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9b099ed46dcaf1403c531ff02c3d7400fa37fa26
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d61608a4e394f23e0dca099df9eb8e555453d949

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.3MEDIUMCISA-ADP
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card