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.
Published: 2026-09-03
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Kernel memory corruption due to out-of-bounds write
Action: Immediate Patch
AI Analysis

Impact

The vulnerability involves an out-of-bounds memory write within the Linux kernel's dev_validate_header() function. The function pads short link-layer headers for processes with the CAP_SYS_RAWIO capability, and when the device's hard_header_len is altered concurrently, the memset can write beyond the allocated skb headroom. This memory corruption can compromise kernel data integrity. The CVE description does not explicitly state privilege escalation, but kernel memory corruption could lead to elevated privileges or system instability—a consequence that is inferred from the nature of the bug.

Affected Systems

All Linux kernel releases that include the zero‑padding code path for CAP_SYS_RAWIO holders are vulnerable. The specific vulnerable releases are not listed in the CVE data, so any kernel version prior to the patch that still contains this path should be considered at risk.

Risk and Exploitability

The bug requires local execution with the CAP_SYS_RAWIO capability, which is normally granted only to privileged processes. The CVSS base score of 7.8 indicates high severity. The EPSS score of less than 1% suggests a low probability of exploitation, and it is not listed in CISA's KEV catalog. The most likely attack vector is a local privileged process triggering the problematic code path, potentially resulting in kernel memory corruption.

Generated by OpenCVE AI on September 4, 2026 at 07:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that removes the CAP_SYS_RAWIO zero‑padding branch in dev_validate_header()
  • If an update is unavailable, revoke the CAP_SYS_RAWIO capability from all non‑root users or applications that may call raw sockets
  • Reboot the system to ensure the new kernel code and capability restrictions are active

Generated by OpenCVE AI on September 4, 2026 at 07:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4777-1 linux security update
Debian DLA Debian DLA DLA-4788-1 linux-6.12 security update
History

Fri, 04 Sep 2026 08:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Fri, 04 Sep 2026 06:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-120
CWE-122

Fri, 04 Sep 2026 05:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Thu, 03 Sep 2026 12:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-120
CWE-122

Thu, 03 Sep 2026 07:30:00 +0000

Type Values Removed Values Added
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.
Title net: remove CAP_SYS_RAWIO zero-padding in dev_validate_header
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-09-04T04:58:17.510Z

Reserved: 2026-08-26T14:34:25.789Z

Link: CVE-2026-80731

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-03T13:06:11.707

Modified: 2026-09-04T05:17:13.583

Link: CVE-2026-80731

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-04T08:00:16Z

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer