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

net/packet: reset the MAC header on the packet-socket transmit path

packet_parse_headers() resets the MAC header only for a SOCK_RAW frame
whose socket did not bind a protocol. A protocol-bound SOCK_RAW socket,
any SOCK_DGRAM frame, and the legacy SOCK_PACKET path therefore leave
skb->mac_header unset here.

For frames sent via __dev_queue_xmit() this is harmless: it resets the
MAC header unconditionally. But the packet-socket PACKET_QDISC_BYPASS
path uses dev_direct_xmit(), which does not, so the frame reaches
ndo_start_xmit() with the MAC header unset. A driver that reads
eth_hdr(skb) on transmit then dereferences skb->head + (u16)~0, an
out-of-bounds access ~64 KiB past the head -- the same class fixed for
one consumer in commit f5089008f90c ("macsec: do not read an unset MAC
header in macsec_encrypt()").

packet_parse_headers() runs only on the transmit path, where skb->data
points at the start of the L2 header for every packet-socket type
regardless of its length: SOCK_RAW and SOCK_PACKET carry a user-supplied
header and SOCK_DGRAM has one built by dev_hard_header(). Reset the MAC
header unconditionally, mirroring __dev_queue_xmit(), so the frame is
anchored on the bypass path too.

Found by 0sec (https://0sec.ai) using automated source analysis;
verified against source and matched to the macsec KASAN report in
f5089008f90c. Compile-tested.
Published: 2026-08-22
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service via out‑of‑bounds read on packet‑socket transmit
Action: Immediate Patch
AI Analysis

Impact

The vulnerability resides in the Linux kernel’s packet‑socket transmit path. When a driver accesses the MAC header during transmit, skb->mac_header may be unset, causing an out‑of‑bounds read roughly 64 KiB past the packet head. This read path can trigger a kernel fault, leading to a system crash or service interruption, effectively a denial of service.

Affected Systems

All Linux kernel variants that have not yet incorporated the commit which resets the MAC header on the packet‑socket transmit path are affected. No specific kernel version ranges are enumerated in the advisory, so any kernel released prior to that patch is potentially vulnerable.

Risk and Exploitability

The exploit requires a user or process that can create and transmit a protocol‑bound SOCK_RAW or SOCK_PACKET socket via the PACKET_QDISC_BYPASS path, typically limited to privileged or locally running processes with CAP_NET_RAW. No publicly available exploits are known. The CVSS score of 7.8 indicates a high likelihood of impact, while the EPSS score of < 1% suggests a very low probability of exploitation. The vulnerability is not listed in CISA KEV. The attack is purely local, thus the risk is moderate for environments where untrusted users can create raw packet sockets or where custom network drivers lack checks for unset MAC headers.

Generated by OpenCVE AI on August 25, 2026 at 13:58 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a kernel version that contains the commit resetting the MAC header on the packet‑socket transmit path.
  • Ensure custom network drivers check whether skb->mac_header is set before calling eth_hdr(skb) on transmit.
  • Restrict the ability to create raw packet sockets by tightening kernel capabilities or using set‑capability controls.

Generated by OpenCVE AI on August 25, 2026 at 13:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4777-1 linux security update
Debian DSA Debian DSA DSA-6466-1 linux security update
History

Tue, 25 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-824
References
Metrics threat_severity

None

threat_severity

Moderate


Tue, 25 Aug 2026 08:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-805

Tue, 25 Aug 2026 06:00: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'}


Sat, 22 Aug 2026 19:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-805

Sat, 22 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net/packet: reset the MAC header on the packet-socket transmit path packet_parse_headers() resets the MAC header only for a SOCK_RAW frame whose socket did not bind a protocol. A protocol-bound SOCK_RAW socket, any SOCK_DGRAM frame, and the legacy SOCK_PACKET path therefore leave skb->mac_header unset here. For frames sent via __dev_queue_xmit() this is harmless: it resets the MAC header unconditionally. But the packet-socket PACKET_QDISC_BYPASS path uses dev_direct_xmit(), which does not, so the frame reaches ndo_start_xmit() with the MAC header unset. A driver that reads eth_hdr(skb) on transmit then dereferences skb->head + (u16)~0, an out-of-bounds access ~64 KiB past the head -- the same class fixed for one consumer in commit f5089008f90c ("macsec: do not read an unset MAC header in macsec_encrypt()"). packet_parse_headers() runs only on the transmit path, where skb->data points at the start of the L2 header for every packet-socket type regardless of its length: SOCK_RAW and SOCK_PACKET carry a user-supplied header and SOCK_DGRAM has one built by dev_hard_header(). Reset the MAC header unconditionally, mirroring __dev_queue_xmit(), so the frame is anchored on the bypass path too. Found by 0sec (https://0sec.ai) using automated source analysis; verified against source and matched to the macsec KASAN report in f5089008f90c. Compile-tested.
Title net/packet: reset the MAC header on the packet-socket transmit path
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-08-25T05:41:21.641Z

Reserved: 2026-08-15T05:44:03.924Z

Link: CVE-2026-74667

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-22T16:16:40.580

Modified: 2026-08-25T06:18:48.573

Link: CVE-2026-74667

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-22T00:00:00Z

Links: CVE-2026-74667 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-25T14:00:17Z

Weaknesses
  • CWE-824

    Access of Uninitialized Pointer