CVE-2026-52937

tap: fix stack info leak in tap_ioctl() SIOCGIFHWADDR

State
Published
Severity
Not scored
Published
Jun 24, 2026
Updated
Oct 30, 2026
Reserved
Jun 9, 2026

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 3b23a32a63219f51a5298bc55a65ecee866e79d0 to before 4b6dcfe0e3dfffd8057a4fc99b3f096c45709905Affected
  • 3b23a32a63219f51a5298bc55a65ecee866e79d0 to before 37d028a473b0826ad5970b52b791db4a29a23627Affected
  • 3b23a32a63219f51a5298bc55a65ecee866e79d0 to before 8197905d97099d8b1e3883112bbb497abd20f9f0Affected
  • 3b23a32a63219f51a5298bc55a65ecee866e79d0 to before 719007c3492f0f1f9e9cdbed8ac45ba45bb13eebAffected
  • 3b23a32a63219f51a5298bc55a65ecee866e79d0 to before 05305e832be7b9d65b2b72caacf7d850b3942b2aAffected
  • 3b23a32a63219f51a5298bc55a65ecee866e79d0 to before bddc09212c24934643bd44fc794748d2bbb3b6cdAffected
  • 176188cff67ec1aa55103647b61d02315cc38e98Affected
  • 1fc205d9e400f069ebf30d3faa6ec2bab2cbd7b4Affected
  • 4d0ae760c02c98fc78b78d3a0509896bc648ad1cAffected
  • 5.4.103 to before 5.5Affected
  • 5.10.21 to before 5.11Affected
  • 5.11.4 to before 5.12Affected
LinuxLinux
  • 5.12Affected
  • before 5.12Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.160 through 6.6.*Not affected
  • 6.12.114 through 6.12.*Not affected
  • 6.18.34 through 6.18.*Not affected
  • 7.0.11 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.