Skip to main content
← All vulnerabilities
CVE-2026-52937

tap: fix stack info leak in tap_ioctl() SIOCGIFHWADDR

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.5, 5.11, 5.12, 6.6.160, 6.12.114, and 2 more
None on Exploit-DB, Metasploit or GitHub

Summary

In the Linux kernel, the following vulnerability has been resolved: tap: fix stack info leak in tap_ioctl() SIOCGIFHWADDR In the SIOCGIFHWADDR path, tap_ioctl() copies 16 bytes of an uninitialised on-stack struct sockaddr_storage to userspace via ifr_hwaddr, but netif_get_mac_address() only writes sa_family and dev->addr_len (6 for Ethernet) bytes, leaving sa_data[6..13] uninitialised. Those 8 trailing bytes leak kernel stack contents; SIOCGIFHWADDR on a macvtap chardev returns kernel .text and direct-map pointers, defeating KASLR. Initialise ss at declaration.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 5.4.103 · fixed in 5.5; From 5.10.21 · fixed in 5.11; From 5.11.4 · fixed in 5.12

  • Linux Linux

    5.12

  • KernelLinux

    From 5.12.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.114; From 6.13.0 · fixed in 6.18.34; From 6.19.0 · fixed in 7.0.11

References 6

git.kernel.org