# CVE-2026-98095: af\_packet: Don't cast tpacket\_hdr.tp\_len to int in tpacket\_parse\_header().

> 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-681
- **Published:** 2026-09-25T10:24:26.493Z
- **Modified:** 2026-10-23T18:15:25.107Z

## Who should check

- Anyone running Linux \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 3e0cad1432a0c0564f5076bab16f1aa4c0474be4; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 6d4d55f75fa0ea32d874eb33e356e9361f3e4591; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 09e3c9b32434600a6992e762bf0d6837f5902134; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 2b9fa12fbdbfc0f671ff23b0ea06c177a6b8a6b8; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< c6b3db727876a027013aa4ccb6913a153a2af41a; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 72abe77e88c3f1f71c5348124e9b28e285f26950; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 9d714076ff398ba8cc5ae0ae146f4a1ea0bbf5e8; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 73e594c19b4f815d8343461cec7074c4713bbde7
- Anyone running Linux 2.6.31

## Description

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

af\_packet: Don't cast tpacket\_hdr.tp\_len to int in tpacket\_parse\_header().

syzbot reported BUG() in sock\_sendmsg\_nosec(). \[0\]

The problem is that tpacket\_parse\_header() casts user-provided
tpacket\_hdr.tp\_len, which is u32, to int.

If the length is larger than INT\_MAX, the following condition
in tpacket\_parse\_header() passes,

  if (unlikely(tp\_len \> size\_max))

and any negative value can be returned to the caller, up to
sock\_sendmsg\_nosec().

The repro set tpacket\_hdr.tp\_len to 0xfffffdef, which is cast
to -EIOCBQUEUED (-529), triggering BUG() in sock\_sendmsg\_nosec().

  \*(uint64\_t\*)0x200000000008 = 0xfffffdef;
  ...
  syscall(\_\_NR\_write, /\*fd=\*/r\[0\], /\*buf=\*/0x200000000000ul, /\*count=\*/1ul);

Let's define the local tp\_len as u32 in tpacket\_parse\_header().

\[0\]:
kernel BUG at net/socket.c:803!
Oops: invalid opcode: 0000 \[\#1\] SMP KASAN PTI
CPU: 0 UID: 0 PID: 5628 Comm: syz-executor176 Not tainted syzkaller \#0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:sock\_sendmsg\_nosec+0x145/0x180 net/socket.c:803
Code: 06 67 48 0f b9 3a eb 95 e8 e8 3a 22 f8 48 89 df 4c 89 f6 4c 89 e2 4d 89 fb 2e e8 32 a5 5c 16 e9 51 ff ff ff e8 cc 3a 22 f8 90 \<0f\> 0b e8 c4 3a 22 f8 48 83 c3 18 48 89 d8 48 c1 e8 03 42 80 3c 28
RSP: 0018:ffffc90003aefb48 EFLAGS: 00010293
RAX: ffffffff89a578d4 RBX: ffff8880764c67c0 RCX: ffff88807fb23e80
RDX: 0000000000000000 RSI: 00000000fffffdef RDI: 00000000fffffdef
RBP: 00000000fffffdef R08: ffffc90003aef747 R09: 1ffff9200075dee8
R10: dffffc0000000000 R11: fffff5200075dee9 R12: 0000000000000001
R13: dffffc0000000000 R14: ffffc90003aefbc0 R15: ffffffff8aac4310
FS:  000055559101b400(0000) GS:ffff888124ce0000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000210 CR3: 0000000073dca000 CR4: 00000000003526f0
Call Trace:
 \<TASK\>
 \_\_sock\_sendmsg net/socket.c:815 \[inline\]
 sock\_write\_iter+0x2de/0x3e0 net/socket.c:1266
 new\_sync\_write fs/read\_write.c:595 \[inline\]
 vfs\_write+0x612/0xba0 fs/read\_write.c:687
 ksys\_write+0x150/0x270 fs/read\_write.c:739
 do\_syscall\_x64 arch/x86/entry/syscall\_64.c:61 \[inline\]
 do\_syscall\_64+0x166/0x520 arch/x86/entry/syscall\_64.c:84
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
RIP: 0033:0x7f173130ecb9
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 \<48\> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 d8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd67e44248 EFLAGS: 00000246 ORIG\_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000200000000000 RCX: 00007f173130ecb9
RDX: 0000000000000001 RSI: 0000200000000000 RDI: 0000000000000003
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd67e44388
R13: 0000000000000002 R14: 00002000000000c0 R15: 0000000000000002
 \</TASK\>

## Affected and fixed versions

- Linux: \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 3e0cad1432a0c0564f5076bab16f1aa4c0474be4; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 6d4d55f75fa0ea32d874eb33e356e9361f3e4591; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 09e3c9b32434600a6992e762bf0d6837f5902134; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 2b9fa12fbdbfc0f671ff23b0ea06c177a6b8a6b8; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< c6b3db727876a027013aa4ccb6913a153a2af41a; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 72abe77e88c3f1f71c5348124e9b28e285f26950; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 9d714076ff398ba8cc5ae0ae146f4a1ea0bbf5e8; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 73e594c19b4f815d8343461cec7074c4713bbde7 (cvelist)
- Linux: 2.6.31 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-98095.md
Affected: Linux >= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, < 3e0cad1432a0c0564f5076bab16f1aa4c0474be4; >= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, < 6d4d55f75fa0ea32d874eb33e356e9361f3e4591; >= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, < 09e3c9b32434600a6992e762bf0d6837f5902134; >= 69e3c75f4d541a6eb151b3e…
Fixed in: Linux 3e0cad1432a0c0564f5076bab16f1aa4c0474be4, Linux 6d4d55f75fa0ea32d874eb33e356e9361f3e4591, Linux 09e3c9b32434600a6992e762bf0d6837f5902134, Linux 2b9fa12fbdbfc0f671ff23b0ea06c177a6b8a6b8, Linux 72abe77e88c3f1f71c5348124e9b28e285f26950, Linux 9d714076ff398ba8cc5ae0ae146f4a1ea0bbf5e8, Linux 73e59…

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

There is no confirmed exploitation: CVE-2026-98095 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-98095?

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

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

Linux \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 3e0cad1432a0c0564f5076bab16f1aa4c0474be4; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 6d4d55f75fa0ea32d874eb33e356e9361f3e4591; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 09e3c9b32434600a6992e762bf0d6837f5902134; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 2b9fa12fbdbfc0f671ff23b0ea06c177a6b8a6b8; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< c6b3db727876a027013aa4ccb6913a153a2af41a; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 72abe77e88c3f1f71c5348124e9b28e285f26950; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 9d714076ff398ba8cc5ae0ae146f4a1ea0bbf5e8; \>= 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1, \< 73e594c19b4f815d8343461cec7074c4713bbde7; Linux 2.6.31.

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

Yes. Fixed in Linux 3e0cad1432a0c0564f5076bab16f1aa4c0474be4, Linux 6d4d55f75fa0ea32d874eb33e356e9361f3e4591, Linux 09e3c9b32434600a6992e762bf0d6837f5902134, Linux 2b9fa12fbdbfc0f671ff23b0ea06c177a6b8a6b8, Linux 72abe77e88c3f1f71c5348124e9b28e285f26950, Linux 9d714076ff398ba8cc5ae0ae146f4a1ea0bbf5e8, Linux 73e594c19b4f815d8343461cec7074c4713bbde7. Upgrade Linux to 73e594c19b4f815d8343461cec7074c4713bbde7 or later.

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

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/3e0cad1432a0c0564f5076bab16f1aa4c0474be4>
- patch: <https://git.kernel.org/stable/c/6d4d55f75fa0ea32d874eb33e356e9361f3e4591>
- patch: <https://git.kernel.org/stable/c/09e3c9b32434600a6992e762bf0d6837f5902134>
- patch: <https://git.kernel.org/stable/c/2b9fa12fbdbfc0f671ff23b0ea06c177a6b8a6b8>
- patch: <https://git.kernel.org/stable/c/c6b3db727876a027013aa4ccb6913a153a2af41a>
- patch: <https://git.kernel.org/stable/c/72abe77e88c3f1f71c5348124e9b28e285f26950>
- patch: <https://git.kernel.org/stable/c/9d714076ff398ba8cc5ae0ae146f4a1ea0bbf5e8>
- patch: <https://git.kernel.org/stable/c/73e594c19b4f815d8343461cec7074c4713bbde7>

## 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-98095>

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