Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-52938

MEDIUM 5.5EPSS 2%

bpf: Fix NULL pointer dereference in bpf_sk_storage_clone and diag paths

Mitigation

  • Upgrade Linux to 375e4e33c18dfa05c5dfd5f3dfffeb29343dd4c7 or later.

Who should check

  • Anyone running Linux >= 5d800f87d0a5ea1b156c47a4b9fd128479335153, < 16af24fea29c209dea53595c99f6da9398548e1b; >= 5d800f87d0a5ea1b156c47a4b9fd128479335153, < 375e4e33c18dfa05c5dfd5f3dfffeb29343dd4c7
  • Anyone running Linux 7.0

Vulnerability facts

Affected
Linux >= 5d800f87d0a5ea1b156c47a4b9fd128479335153, < 16af24fea29c209dea53595c99f6da9398548e1b; >= 5d800f87d0a5ea1b156c47a4b9fd128479335153, < 375e4e33c18dfa05c5dfd5f3dfffeb29343dd4c7; Linux 7.0
Fixed in
Linux 16af24fea29c209dea53595c99f6da9398548e1b, Linux 375e4e33c18dfa05c5dfd5f3dfffeb29343dd4c7
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.14% chance of exploitation in 30 days (percentile 2, 2026-11-26)
CWE
CWE-476
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix NULL pointer dereference in bpf_sk_storage_clone and diag paths bpf_selem_unlink_nofail() sets SDATA(selem)->smap to NULL before removing the selem from the storage hlist. A concurrent RCU reader in bpf_sk_storage_clone() can observe the selem still on the list with smap already NULL, causing a NULL pointer dereference. general protection fault, probably for non-canonical address 0xdffffc000000000a: KASAN: null-ptr-deref in range [0x0000000000000050-0x0000000000000057] RIP: 0010:bpf_sk_storage_clone+0x1cd/0xaa0 net/core/bpf_sk_storage.c:174 Call Trace: <IRQ> sk_clone+0xfed/0x1980 net/core/sock.c:2591 inet_csk_clone_lock+0x30/0x760 net/ipv4/inet_connection_sock.c:1222 tcp_create_openreq_child+0x35/0x2680 net/ipv4/tcp_minisocks.c:571 tcp_v4_syn_recv_sock+0x123/0xf90 net/ipv4/tcp_ipv4.c:1729 tcp_check_req+0x8e1/0x2580 include/net/tcp.h:855 tcp_v4_rcv+0x1845/0x3b80 net/ipv4/tcp_ipv4.c:2347 Add a NULL check for smap in bpf_sk_storage_clone(). bpf_sk_storage_diag_put_all() has the same issue. Add a NULL check and pass the validated smap directly to diag_get(), which is refactored to take smap as a parameter instead of reading it internally. bpf_sk_storage_diag_put() uses diag->maps[i] which is always valid under its refcount, so diag->maps[i] is passed directly to diag_get().

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 5d800f87d0a5ea1b156c47a4b9fd128479335153, < 16af24fea29c209dea53595c99f6da9398548e1b; >= 5d800f87d0a5ea1b156c47a4b9fd128479335153, < 375e4e33c18dfa05c5dfd5f3dfffeb29343dd4c7—cvelist
Linux7.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-52938. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-52938.md
Affected: Linux >= 5d800f87d0a5ea1b156c47a4b9fd128479335153, < 16af24fea29c209dea53595c99f6da9398548e1b; >= 5d800f87d0a5ea1b156c47a4b9fd128479335153, < 375e4e33c18dfa05c5dfd5f3dfffeb29343dd4c7; Linux 7.0
Fixed in: Linux 16af24fea29c209dea53595c99f6da9398548e1b, Linux 375e4e33c18dfa05c5dfd5f3dfffeb29343dd4c7

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.

References

FAQ

Is CVE-2026-52938 being exploited?

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

How serious is CVE-2026-52938?

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

Which versions are affected by CVE-2026-52938?

Linux >= 5d800f87d0a5ea1b156c47a4b9fd128479335153, < 16af24fea29c209dea53595c99f6da9398548e1b; >= 5d800f87d0a5ea1b156c47a4b9fd128479335153, < 375e4e33c18dfa05c5dfd5f3dfffeb29343dd4c7; Linux 7.0.

Is there a fix for CVE-2026-52938?

Yes. Fixed in Linux 16af24fea29c209dea53595c99f6da9398548e1b, Linux 375e4e33c18dfa05c5dfd5f3dfffeb29343dd4c7. Upgrade Linux to 375e4e33c18dfa05c5dfd5f3dfffeb29343dd4c7 or later.

How do I check if I'm affected by CVE-2026-52938?

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.

Sponsors