All vulnerabilities

Servers and applications

CVE-2026-52942

netfilter: nf_log: validate MAC header was set before dumping it

Severity
High 7.1
Published
24 Jun 2026
Last changed
10 Nov 2026
Added to UpHeron
10 Nov 2026
Fixed in
5.15.210, 6.1.176, 6.6.143, 6.12.94, 6.18.36, 7.0.13
Exploit chance
0.1% in the next 30 daysHigher than 2% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Out-of-bounds read (CWE-125)
Attack
Needs local access · Needs a user account · No user action needed
Attacker can
Read data · Take it down
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Sources
CVE Program

Description

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

The fallback path of dump_mac_header() guards the MAC header access only with "skb->mac_header != skb->network_header", without checking skb_mac_header_was_set(). When the MAC header is unset, mac_header is 0xffff, so the test passes and skb_mac_header(skb) returns skb->head + 0xffff, ~64 KiB past the buffer; the loop then reads dev->hard_header_len bytes out of bounds into the kernel log.

This is reachable via the netdev logger: nf_log_unknown_packet() calls dump_mac_header() unconditionally, and an skb sent through AF_PACKET with PACKET_QDISC_BYPASS reaches the egress hook with mac_header still unset (__dev_queue_xmit(), which would reset it, is bypassed).

Add the skb_mac_header_was_set() check the ARPHRD_ETHER path already uses, and replace the open-coded MAC header length test with skb_mac_header_len(). Only skbs with an unset MAC header are affected; valid ones are dumped as before.

From the CVE Program. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Linux kernelServers and applications · cna:linux|linux
  • From 6.19 before 7.0.13
  • From 6.13 before 6.18.36
  • From 6.7 before 6.12.94
  • From 6.2 before 6.6.143
All 7 release lines
  • From 2.6.36 before 5.10.261
  • From 5.11 before 5.15.210
  • From 5.16 before 6.1.176
  • From 6.2 before 6.6.143
  • From 6.7 before 6.12.94
  • From 6.13 before 6.18.36
  • From 6.19 before 7.0.13

About Linux kernel

Unix-like operating system kernel, basis for all Linux operating systems

From Wikidata, CC0 1.0.
GitHub stars
255,726GitHub, 15 Nov 2026
Forks
67,394GitHub, 15 Nov 2026
Developer
Linus TorvaldsWikidata
License
GNU General Public License, version 2.0Wikidata
Written in
CWikidata
First released
25 Aug 1991Wikidata
First published on GitHub
4 Sept 2011GitHub

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-52942