tap: fix stack info leak in tap_ioctl() SIOCGIFHWADDR (Linux Linux)

CVE-2026-52937
MEDIUM 5.5

En bref

Source
NVD
EPSS
EPSS 0.11 % · centile 2 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

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.

Faiblesses (CWE)

  • CWE-401 — Mémoire non libérée après sa durée de vie utile

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected 3b23a32a63219f51a5298bc55a65ecee866e79d0 < 4b6dcfe0e3dfffd8057a4fc99b3f096c45709905 ; affected 3b23a32a63219f51a5298bc55a65ecee866e79d0 < 37d028a473b0826ad5970b52b791db4a29a23627 ; affected 3b23a32a63219f51a5298bc55a65ecee866e79d0 < 8197905d97099d8b1e3883112bbb497abd20f9f0 ; affected 3b23a32a63219f51a5298bc55a65ecee866e79d0 < 719007c3492f0f1f9e9cdbed8ac45ba45bb13eeb ; affected 3b23a32a63219f51a5298bc55a65ecee866e79d0 < 05305e832be7b9d65b2b72caacf7d850b3942b2a ; affected 3b23a32a63219f51a5298bc55a65ecee866e79d0 < bddc09212c24934643bd44fc794748d2bbb3b6cd
Linux · Linuxaffected 5.12 ; unaffected 0 < 5.12 ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.160 ≤ 6.6.* ; unaffected 6.12.114 ≤ 6.12.* ; unaffected 6.18.34 ≤ 6.18.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD