# CVE-2026-80731: net: remove CAP\_SYS\_RAWIO zero-padding in dev\_validate\_header

> 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, CNA) `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.19% (percentile 5, 2026-11-26)
- **Published:** 2026-09-03T08:21:48.924Z
- **Modified:** 2026-10-16T20:18:09.420Z

## Who should check

- Anyone running Linux \>= b5518429e70cd783b8ca52335456172c1a0589f6, \< 53fd7f912c0877647d6a1e1877f5ea8535ee0b4a; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< fa6d98dd925e72fc028b26a0cbbff9d2f0601ff6; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< 8fc9816404166a90ed8d544dc52482fafffb6d9f; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< b0f92a5731dc82556a9ae005cc35f71ab136307b; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< 99df6b7a713f96eda206680d100b76e15f9d9b69; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< 74e035f07f53feca09e2352e77fccb09cad5e208; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< dbb30dc943a93e083f1e531bfdc6779e57de40d0; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< fc902f52a02298c7432b2334c0c82a2885a1a8b6; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< 3b9a324e646d3657a8d9806dfbfe4f3e4066e882; f58a6c08ebdfa978178bbca78c2ba744a2665912; …
- Anyone running Linux 4.6

## Description

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

net: remove CAP\_SYS\_RAWIO zero-padding in dev\_validate\_header

dev\_validate\_header() reads dev-\>hard\_header\_len directly when
zero-padding short link layer headers for CAP\_SYS\_RAWIO holders:

    if (capable(CAP\_SYS\_RAWIO)) {
        memset(ll\_header + len, 0, dev-\>hard\_header\_len - len);
        return true;
    }

Packet send paths call dev\_validate\_header() on skbs whose headroom was
allocated from an earlier hard\_header\_len read. If the device is
reconfigured so that dev-\>hard\_header\_len increases before validation,
the memset writes past the reserved buffer, an out-of-bounds write.

This out-of-bounds write is masked in some SOCK\_RAW paths today because
the same concurrent increase can first make skb\_push() exceed the
reserved headroom and trigger skb\_under\_panic(). Remove the zero-padding
branch before making those hard\_header\_len reads consistent, so the
snapshot fixes do not turn a loud panic into a silent overwrite.

This path is only reached for variable length L2 protocols, where
len \< hard\_header\_len but len \>= min\_header\_len. No remaining in-tree
variable length L2 protocol implements header\_ops-\>validate, and the
CAP\_SYS\_RAWIO bypass that zero-pads and accepts short headers has no
real value beyond allowing testing of intentionally malformed input.

Drop the CAP\_SYS\_RAWIO branch. The remaining reads of
dev-\>hard\_header\_len in dev\_validate\_header() are comparisons only and
have no memory safety impact.

## Affected and fixed versions

- Linux: \>= b5518429e70cd783b8ca52335456172c1a0589f6, \< 53fd7f912c0877647d6a1e1877f5ea8535ee0b4a; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< fa6d98dd925e72fc028b26a0cbbff9d2f0601ff6; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< 8fc9816404166a90ed8d544dc52482fafffb6d9f; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< b0f92a5731dc82556a9ae005cc35f71ab136307b; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< 99df6b7a713f96eda206680d100b76e15f9d9b69; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< 74e035f07f53feca09e2352e77fccb09cad5e208; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< dbb30dc943a93e083f1e531bfdc6779e57de40d0; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< fc902f52a02298c7432b2334c0c82a2885a1a8b6; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< 3b9a324e646d3657a8d9806dfbfe4f3e4066e882; f58a6c08ebdfa978178bbca78c2ba744a2665912; … (cvelist)
- Linux: 4.6 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-80731.md
Affected: Linux >= b5518429e70cd783b8ca52335456172c1a0589f6, < 53fd7f912c0877647d6a1e1877f5ea8535ee0b4a; >= 2793a23aacbd754dbbb5cb75093deb7e4103bace, < fa6d98dd925e72fc028b26a0cbbff9d2f0601ff6; >= 2793a23aacbd754dbbb5cb75093deb7e4103bace, < 8fc9816404166a90ed8d544dc52482fafffb6d9f; >= 2793a23aacbd754dbbb5cb7…
Fixed in: Linux 53fd7f912c0877647d6a1e1877f5ea8535ee0b4a, Linux 8fc9816404166a90ed8d544dc52482fafffb6d9f, Linux 99df6b7a713f96eda206680d100b76e15f9d9b69, Linux 74e035f07f53feca09e2352e77fccb09cad5e208, Linux 3b9a324e646d3657a8d9806dfbfe4f3e4066e882

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

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

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

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

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

Linux \>= b5518429e70cd783b8ca52335456172c1a0589f6, \< 53fd7f912c0877647d6a1e1877f5ea8535ee0b4a; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< fa6d98dd925e72fc028b26a0cbbff9d2f0601ff6; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< 8fc9816404166a90ed8d544dc52482fafffb6d9f; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< b0f92a5731dc82556a9ae005cc35f71ab136307b; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< 99df6b7a713f96eda206680d100b76e15f9d9b69; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< 74e035f07f53feca09e2352e77fccb09cad5e208; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< dbb30dc943a93e083f1e531bfdc6779e57de40d0; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< fc902f52a02298c7432b2334c0c82a2885a1a8b6; \>= 2793a23aacbd754dbbb5cb75093deb7e4103bace, \< 3b9a324e646d3657a8d9806dfbfe4f3e4066e882; f58a6c08ebdfa978178bbca78c2ba744a2665912; …; Linux 4.6.

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

Yes. Fixed in Linux 53fd7f912c0877647d6a1e1877f5ea8535ee0b4a, Linux 8fc9816404166a90ed8d544dc52482fafffb6d9f, Linux 99df6b7a713f96eda206680d100b76e15f9d9b69, Linux 74e035f07f53feca09e2352e77fccb09cad5e208, Linux 3b9a324e646d3657a8d9806dfbfe4f3e4066e882. No fix listed yet: follow the vendor advisory.

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

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

- other: <https://git.kernel.org/stable/c/53fd7f912c0877647d6a1e1877f5ea8535ee0b4a>
- other: <https://git.kernel.org/stable/c/fa6d98dd925e72fc028b26a0cbbff9d2f0601ff6>
- other: <https://git.kernel.org/stable/c/8fc9816404166a90ed8d544dc52482fafffb6d9f>
- other: <https://git.kernel.org/stable/c/b0f92a5731dc82556a9ae005cc35f71ab136307b>
- other: <https://git.kernel.org/stable/c/99df6b7a713f96eda206680d100b76e15f9d9b69>
- other: <https://git.kernel.org/stable/c/74e035f07f53feca09e2352e77fccb09cad5e208>
- other: <https://git.kernel.org/stable/c/dbb30dc943a93e083f1e531bfdc6779e57de40d0>
- other: <https://git.kernel.org/stable/c/fc902f52a02298c7432b2334c0c82a2885a1a8b6>
- other: <https://git.kernel.org/stable/c/3b9a324e646d3657a8d9806dfbfe4f3e4066e882>

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

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