# CVE-2026-23343: xdp: produce a warning when calculated tailroom is negative

> 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, NVD) `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.21% (percentile 7, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2026-03-25T10:27:31.130Z
- **Modified:** 2026-11-10T13:18:42.220Z

## Who should check

- Anyone running Linux \>= bf25146a5595269810b1f47d048f114c5ff9f544, \< 01379540452a02bbc52f639d45dd365cd3624efb; \>= bf25146a5595269810b1f47d048f114c5ff9f544, \< a0fb59f527d03c60b2cd547cfae4a842ad84670f; \>= bf25146a5595269810b1f47d048f114c5ff9f544, \< c7c790a07697148c41e2d03eb28efe132adda749; \>= bf25146a5595269810b1f47d048f114c5ff9f544, \< 98cd8b4d0b836d3edf70161f40efd9cbb8c8f252; \>= bf25146a5595269810b1f47d048f114c5ff9f544, \< 94b9da7e9f958cb3d115b21eff824ecd8c3217aa; \>= bf25146a5595269810b1f47d048f114c5ff9f544, \< 8821e857759be9db3cde337ad328b71fe5c8a55f
- Anyone running Linux 5.18

## Description

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

xdp: produce a warning when calculated tailroom is negative

Many ethernet drivers report xdp Rx queue frag size as being the same as
DMA write size. However, the only user of this field, namely
bpf\_xdp\_frags\_increase\_tail(), clearly expects a truesize.

Such difference leads to unspecific memory corruption issues under certain
circumstances, e.g. in ixgbevf maximum DMA write size is 3 KB, so when
running xskxceiver's XDP\_ADJUST\_TAIL\_GROW\_MULTI\_BUFF, 6K packet fully uses
all DMA-writable space in 2 buffers. This would be fine, if only
rxq-\>frag\_size was properly set to 4K, but value of 3K results in a
negative tailroom, because there is a non-zero page offset.

We are supposed to return -EINVAL and be done with it in such case, but due
to tailroom being stored as an unsigned int, it is reported to be somewhere
near UINT\_MAX, resulting in a tail being grown, even if the requested
offset is too much (it is around 2K in the abovementioned test). This later
leads to all kinds of unspecific calltraces.

\[ 7340.337579\] xskxceiver\[1440\]: segfault at 1da718 ip 00007f4161aeac9d sp 00007f41615a6a00 error 6
\[ 7340.338040\] xskxceiver\[1441\]: segfault at 7f410000000b ip 00000000004042b5 sp 00007f415bffecf0 error 4
\[ 7340.338179\]  in libc.so.6\[61c9d,7f4161aaf000+160000\]
\[ 7340.339230\]  in xskxceiver\[42b5,400000+69000\]
\[ 7340.340300\]  likely on CPU 6 (core 0, socket 6)
\[ 7340.340302\] Code: ff ff 01 e9 f4 fe ff ff 0f 1f 44 00 00 4c 39 f0 74 73 31 c0 ba 01 00 00 00 f0 0f b1 17 0f 85 ba 00 00 00 49 8b 87 88 00 00 00 \<4c\> 89 70 08 eb cc 0f 1f 44 00 00 48 8d bd f0 fe ff ff 89 85 ec fe
\[ 7340.340888\]  likely on CPU 3 (core 0, socket 3)
\[ 7340.345088\] Code: 00 00 00 ba 00 00 00 00 be 00 00 00 00 89 c7 e8 31 ca ff ff 89 45 ec 8b 45 ec 85 c0 78 07 b8 00 00 00 00 eb 46 e8 0b c8 ff ff \<8b\> 00 83 f8 69 74 24 e8 ff c7 ff ff 8b 00 83 f8 0b 74 18 e8 f3 c7
\[ 7340.404334\] Oops: general protection fault, probably for non-canonical address 0x6d255010bdffc: 0000 \[\#1\] SMP NOPTI
\[ 7340.405972\] CPU: 7 UID: 0 PID: 1439 Comm: xskxceiver Not tainted 6.19.0-rc1+ \#21 PREEMPT(lazy)
\[ 7340.408006\] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.17.0-5.fc42 04/01/2014
\[ 7340.409716\] RIP: 0010:lookup\_swap\_cgroup\_id+0x44/0x80
\[ 7340.410455\] Code: 83 f8 1c 73 39 48 ba ff ff ff ff ff ff ff 03 48 8b 04 c5 20 55 fa bd 48 21 d1 48 89 ca 83 e1 01 48 d1 ea c1 e1 04 48 8d 04 90 \<8b\> 00 48 83 c4 10 d3 e8 c3 cc cc cc cc 31 c0 e9 98 b7 dd 00 48 89
\[ 7340.412787\] RSP: 0018:ffffcc5c04f7f6d0 EFLAGS: 00010202
\[ 7340.413494\] RAX: 0006d255010bdffc RBX: ffff891f477895a8 RCX: 0000000000000010
\[ 7340.414431\] RDX: 0001c17e3fffffff RSI: 00fa070000000000 RDI: 000382fc7fffffff
\[ 7340.415354\] RBP: 00fa070000000000 R08: ffffcc5c04f7f8f8 R09: ffffcc5c04f7f7d0
\[ 7340.416283\] R10: ffff891f4c1a7000 R11: ffffcc5c04f7f9c8 R12: ffffcc5c04f7f7d0
\[ 7340.417218\] R13: 03ffffffffffffff R14: 00fa06fffffffe00 R15: ffff891f47789500
\[ 7340.418229\] FS:  0000000000000000(0000) GS:ffff891ffdfaa000(0000) knlGS:0000000000000000
\[ 7340.419489\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[ 7340.420286\] CR2: 00007f415bfffd58 CR3: 0000000103f03002 CR4: 0000000000772ef0
\[ 7340.421237\] PKRU: 55555554
\[ 7340.421623\] Call Trace:
\[ 7340.421987\]  \<TASK\>
\[ 7340.422309\]  ? softleaf\_from\_pte+0x77/0xa0
\[ 7340.422855\]  swap\_pte\_batch+0xa7/0x290
\[ 7340.423363\]  zap\_nonpresent\_ptes.constprop.0.isra.0+0xd1/0x270
\[ 7340.424102\]  zap\_pte\_range+0x281/0x580
\[ 7340.424607\]  zap\_pmd\_range.isra.0+0xc9/0x240
\[ 7340.425177\]  unmap\_page\_range+0x24d/0x420
\[ 7340.425714\]  unmap\_vmas+0xa1/0x180
\[ 7340.426185\]  exit\_mmap+0xe1/0x3b0
\[ 7340.426644\]  \_\_mmput+0x41/0x150
\[ 7340.427098\]  exit\_mm+0xb1/0x110
\[ 7340.427539\]  do\_exit+0x1b2/0x460
\[ 7340.427992\]  do\_group\_exit+0x2d/0xc0
\[ 7340.428477\]  get\_signal+0x79d/0x7e0
\[ 7340.428957\]  arch\_do\_signal\_or\_restart+0x34/0x100
\[ 7340.429571\]  exit\_to\_user\_mode\_loop+0x8e/0x4c0
\[ 7340.430159\]  do\_syscall\_64+0x188/
---truncated---

## Affected and fixed versions

- Linux: \>= bf25146a5595269810b1f47d048f114c5ff9f544, \< 01379540452a02bbc52f639d45dd365cd3624efb; \>= bf25146a5595269810b1f47d048f114c5ff9f544, \< a0fb59f527d03c60b2cd547cfae4a842ad84670f; \>= bf25146a5595269810b1f47d048f114c5ff9f544, \< c7c790a07697148c41e2d03eb28efe132adda749; \>= bf25146a5595269810b1f47d048f114c5ff9f544, \< 98cd8b4d0b836d3edf70161f40efd9cbb8c8f252; \>= bf25146a5595269810b1f47d048f114c5ff9f544, \< 94b9da7e9f958cb3d115b21eff824ecd8c3217aa; \>= bf25146a5595269810b1f47d048f114c5ff9f544, \< 8821e857759be9db3cde337ad328b71fe5c8a55f (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-23343.md
Affected: Linux >= bf25146a5595269810b1f47d048f114c5ff9f544, < 01379540452a02bbc52f639d45dd365cd3624efb; >= bf25146a5595269810b1f47d048f114c5ff9f544, < a0fb59f527d03c60b2cd547cfae4a842ad84670f; >= bf25146a5595269810b1f47d048f114c5ff9f544, < c7c790a07697148c41e2d03eb28efe132adda749; >= bf25146a5595269810b1f47…
Fixed in: Linux 01379540452a02bbc52f639d45dd365cd3624efb, Linux 98cd8b4d0b836d3edf70161f40efd9cbb8c8f252, Linux 94b9da7e9f958cb3d115b21eff824ecd8c3217aa, Linux 8821e857759be9db3cde337ad328b71fe5c8a55f

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

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

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

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

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

Linux \>= bf25146a5595269810b1f47d048f114c5ff9f544, \< 01379540452a02bbc52f639d45dd365cd3624efb; \>= bf25146a5595269810b1f47d048f114c5ff9f544, \< a0fb59f527d03c60b2cd547cfae4a842ad84670f; \>= bf25146a5595269810b1f47d048f114c5ff9f544, \< c7c790a07697148c41e2d03eb28efe132adda749; \>= bf25146a5595269810b1f47d048f114c5ff9f544, \< 98cd8b4d0b836d3edf70161f40efd9cbb8c8f252; \>= bf25146a5595269810b1f47d048f114c5ff9f544, \< 94b9da7e9f958cb3d115b21eff824ecd8c3217aa; \>= bf25146a5595269810b1f47d048f114c5ff9f544, \< 8821e857759be9db3cde337ad328b71fe5c8a55f; Linux 5.18.

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

Yes. Fixed in Linux 01379540452a02bbc52f639d45dd365cd3624efb, Linux 98cd8b4d0b836d3edf70161f40efd9cbb8c8f252, Linux 94b9da7e9f958cb3d115b21eff824ecd8c3217aa, Linux 8821e857759be9db3cde337ad328b71fe5c8a55f. Upgrade Linux to 8821e857759be9db3cde337ad328b71fe5c8a55f or later.

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

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/01379540452a02bbc52f639d45dd365cd3624efb>
- patch: <https://git.kernel.org/stable/c/a0fb59f527d03c60b2cd547cfae4a842ad84670f>
- patch: <https://git.kernel.org/stable/c/c7c790a07697148c41e2d03eb28efe132adda749>
- patch: <https://git.kernel.org/stable/c/98cd8b4d0b836d3edf70161f40efd9cbb8c8f252>
- patch: <https://git.kernel.org/stable/c/94b9da7e9f958cb3d115b21eff824ecd8c3217aa>
- patch: <https://git.kernel.org/stable/c/8821e857759be9db3cde337ad328b71fe5c8a55f>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.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-2026-23343>

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