# CVE-2026-53111: bpf: test\_run: Fix the null pointer dereference issue in bpf\_lwt\_xmit\_push\_encap

> 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.16% (percentile 3, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2026-06-24T16:30:44.691Z
- **Modified:** 2026-11-06T17:18:07.320Z

## Who should check

- Anyone running Linux \>= 52f278774e796a553be0c869dcaaee6f259ca795, \< 5c8d1f91fc4898d79f29d79c1a6f7c2b3ee66fb0; \>= 52f278774e796a553be0c869dcaaee6f259ca795, \< c7ad31fb948fdd4905263f4324160682c3fa7bc6; \>= 52f278774e796a553be0c869dcaaee6f259ca795, \< 599905c3f10bb83e6e6881d5a7f5cea5df07dc23; \>= 52f278774e796a553be0c869dcaaee6f259ca795, \< 5500913516e071dbe23e5a404c861dd2d82c9589; \>= 52f278774e796a553be0c869dcaaee6f259ca795, \< 94f95328b9070909b5b875c647b17a11d3d85567; \>= 52f278774e796a553be0c869dcaaee6f259ca795, \< 972787479ee73006fddb5e59ab5c8e733810ff42
- Anyone running Linux 5.1

## Description

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

bpf: test\_run: Fix the null pointer dereference issue in bpf\_lwt\_xmit\_push\_encap

The bpf\_lwt\_xmit\_push\_encap helper needs to access skb\_dst(skb)-\>dev to
calculate the needed headroom:

	err = skb\_cow\_head(skb,
			   len + LL\_RESERVED\_SPACE(skb\_dst(skb)-\>dev));

But skb-\>\_skb\_refdst may not be initialized when the skb is set up by
bpf\_prog\_test\_run\_skb function. Executing bpf\_lwt\_push\_ip\_encap function
in this scenario will trigger null pointer dereference, causing a kernel
crash as Yinhao reported:

\[  105.186365\] BUG: kernel NULL pointer dereference, address: 0000000000000000
\[  105.186382\] \#PF: supervisor read access in kernel mode
\[  105.186388\] \#PF: error\_code(0x0000) - not-present page
\[  105.186393\] PGD 121d3d067 P4D 121d3d067 PUD 106c83067 PMD 0
\[  105.186404\] Oops: 0000 \[\#1\] PREEMPT SMP NOPTI
\[  105.186412\] CPU: 3 PID: 3250 Comm: poc Kdump: loaded Not tainted 6.19.0-rc5 \#1
\[  105.186423\] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
\[  105.186427\] RIP: 0010:bpf\_lwt\_push\_ip\_encap+0x1eb/0x520
\[  105.186443\] Code: 0f 84 de 01 00 00 0f b7 4a 04 66 85 c9 0f 85 47 01 00 00 31 c0 5b 5d 41 5c 41 5d 41 5e c3 cc cc cc cc 48 8b 73 58 48 83 e6 fe \<48\> 8b 36 0f b7 be ec 00 00 00 0f b7 b6 e6 00 00 00 01 fe 83 e6 f0
\[  105.186449\] RSP: 0018:ffffbb0e0387bc50 EFLAGS: 00010246
\[  105.186455\] RAX: 000000000000004e RBX: ffff94c74e036500 RCX: ffff94c74874da00
\[  105.186460\] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff94c74e036500
\[  105.186463\] RBP: 0000000000000001 R08: 0000000000000002 R09: 0000000000000000
\[  105.186467\] R10: ffffbb0e0387bd50 R11: 0000000000000000 R12: ffffbb0e0387bc98
\[  105.186471\] R13: 0000000000000014 R14: 0000000000000000 R15: 0000000000000002
\[  105.186484\] FS:  00007f166aa4d680(0000) GS:ffff94c8b7780000(0000) knlGS:0000000000000000
\[  105.186490\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  105.186494\] CR2: 0000000000000000 CR3: 000000015eade001 CR4: 0000000000770ee0
\[  105.186499\] PKRU: 55555554
\[  105.186502\] Call Trace:
\[  105.186507\]  \<TASK\>
\[  105.186513\]  bpf\_lwt\_xmit\_push\_encap+0x2b/0x40
\[  105.186522\]  bpf\_prog\_a75eaad51e517912+0x41/0x49
\[  105.186536\]  ? kvm\_clock\_get\_cycles+0x18/0x30
\[  105.186547\]  ? ktime\_get+0x3c/0xa0
\[  105.186554\]  bpf\_test\_run+0x195/0x320
\[  105.186563\]  ? bpf\_test\_run+0x10f/0x320
\[  105.186579\]  bpf\_prog\_test\_run\_skb+0x2f5/0x4f0
\[  105.186590\]  \_\_sys\_bpf+0x69c/0xa40
\[  105.186603\]  \_\_x64\_sys\_bpf+0x1e/0x30
\[  105.186611\]  do\_syscall\_64+0x59/0x110
\[  105.186620\]  entry\_SYSCALL\_64\_after\_hwframe+0x76/0xe0
\[  105.186649\] RIP: 0033:0x7f166a97455d

Temporarily add the setting of skb-\>\_skb\_refdst before bpf\_test\_run to resolve the issue.

## Affected and fixed versions

- Linux: \>= 52f278774e796a553be0c869dcaaee6f259ca795, \< 5c8d1f91fc4898d79f29d79c1a6f7c2b3ee66fb0; \>= 52f278774e796a553be0c869dcaaee6f259ca795, \< c7ad31fb948fdd4905263f4324160682c3fa7bc6; \>= 52f278774e796a553be0c869dcaaee6f259ca795, \< 599905c3f10bb83e6e6881d5a7f5cea5df07dc23; \>= 52f278774e796a553be0c869dcaaee6f259ca795, \< 5500913516e071dbe23e5a404c861dd2d82c9589; \>= 52f278774e796a553be0c869dcaaee6f259ca795, \< 94f95328b9070909b5b875c647b17a11d3d85567; \>= 52f278774e796a553be0c869dcaaee6f259ca795, \< 972787479ee73006fddb5e59ab5c8e733810ff42 (cvelist)
- Linux: 5.1 (cvelist)

## Mitigation

- Upgrade Linux to 972787479ee73006fddb5e59ab5c8e733810ff42 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-53111.md
Affected: Linux >= 52f278774e796a553be0c869dcaaee6f259ca795, < 5c8d1f91fc4898d79f29d79c1a6f7c2b3ee66fb0; >= 52f278774e796a553be0c869dcaaee6f259ca795, < c7ad31fb948fdd4905263f4324160682c3fa7bc6; >= 52f278774e796a553be0c869dcaaee6f259ca795, < 599905c3f10bb83e6e6881d5a7f5cea5df07dc23; >= 52f278774e796a553be0c86…
Fixed in: Linux 5c8d1f91fc4898d79f29d79c1a6f7c2b3ee66fb0, Linux 599905c3f10bb83e6e6881d5a7f5cea5df07dc23, Linux 5500913516e071dbe23e5a404c861dd2d82c9589, Linux 94f95328b9070909b5b875c647b17a11d3d85567, Linux 972787479ee73006fddb5e59ab5c8e733810ff42

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-2026-53111 being exploited?

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

### How serious is CVE-2026-53111?

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

### Which versions are affected by CVE-2026-53111?

Linux \>= 52f278774e796a553be0c869dcaaee6f259ca795, \< 5c8d1f91fc4898d79f29d79c1a6f7c2b3ee66fb0; \>= 52f278774e796a553be0c869dcaaee6f259ca795, \< c7ad31fb948fdd4905263f4324160682c3fa7bc6; \>= 52f278774e796a553be0c869dcaaee6f259ca795, \< 599905c3f10bb83e6e6881d5a7f5cea5df07dc23; \>= 52f278774e796a553be0c869dcaaee6f259ca795, \< 5500913516e071dbe23e5a404c861dd2d82c9589; \>= 52f278774e796a553be0c869dcaaee6f259ca795, \< 94f95328b9070909b5b875c647b17a11d3d85567; \>= 52f278774e796a553be0c869dcaaee6f259ca795, \< 972787479ee73006fddb5e59ab5c8e733810ff42; Linux 5.1.

### Is there a fix for CVE-2026-53111?

Yes. Fixed in Linux 5c8d1f91fc4898d79f29d79c1a6f7c2b3ee66fb0, Linux 599905c3f10bb83e6e6881d5a7f5cea5df07dc23, Linux 5500913516e071dbe23e5a404c861dd2d82c9589, Linux 94f95328b9070909b5b875c647b17a11d3d85567, Linux 972787479ee73006fddb5e59ab5c8e733810ff42. Upgrade Linux to 972787479ee73006fddb5e59ab5c8e733810ff42 or later.

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

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/5c8d1f91fc4898d79f29d79c1a6f7c2b3ee66fb0>
- patch: <https://git.kernel.org/stable/c/c7ad31fb948fdd4905263f4324160682c3fa7bc6>
- patch: <https://git.kernel.org/stable/c/599905c3f10bb83e6e6881d5a7f5cea5df07dc23>
- patch: <https://git.kernel.org/stable/c/5500913516e071dbe23e5a404c861dd2d82c9589>
- patch: <https://git.kernel.org/stable/c/94f95328b9070909b5b875c647b17a11d3d85567>
- patch: <https://git.kernel.org/stable/c/972787479ee73006fddb5e59ab5c8e733810ff42>

## 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-2026-53111>

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