Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D09C7389DE3 for ; Wed, 24 Jun 2026 07:15:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782285349; cv=none; b=ZrcOqRRdhZrplkznKNNku5GBd4uA0Xpy57bSWBv25xX0vC0O1ggJvvR/7QwzzGAJCTvHvfVlXyyXf4VE1xnobvAZZzmp168qlkqz/zFRX6LSWwCYHKxlROxOUyu1Wmf/5q4ZJ+6K2xwj5/lCu/zelpvuYLAsRgIraOBMpgzaOVA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782285349; c=relaxed/simple; bh=7acnhUVWuRqRJQMfG7ytaQuwB5IOPxdJXQHxa0rJGao=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=J9c7zYatgxfYSML6Nn/dGf4SSyIVbSC+pP7bwe5pU44Zrm1KCunBxFGMQfyIIs14Dpvi+SMAYzzncDQ212mEVZaibxmFYtOnppF0MeCONThXK+fVPbXKXjRasM8MQQZ56EiLbhU0R3IbnuaqQqQTIdkG4JSxIpuWZqaxAUyXVbk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DfDwvX/B; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="DfDwvX/B" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2CCC81F00A3A; Wed, 24 Jun 2026 07:15:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782285348; bh=0douImOMvBMeXm2Nnl/Pf/Q6UEoByZyJ1uaGHg+vgY8=; h=From:To:Cc:Subject:Date:Reply-To; b=DfDwvX/BYaOwgqDAf20pL7Fq5ypGDd6+tAhdoqiKdXG6R7zKqiGTvQHcNCET/bGfu 0+YCrEQtZOdu8L8/zbBT3sToMckLC9eD9nYZIpTYVP7/TI2Z/pBfV1OPIULDHNwtcj AwScyyfJ+2a9bnSy5tJ2bZm5xkl2sUWqhxeax2Q4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-52937: tap: fix stack info leak in tap_ioctl() SIOCGIFHWADDR Date: Wed, 24 Jun 2026 09:13:52 +0200 Message-ID: <2026062434-CVE-2026-52937-62eb@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2686; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nOP5r3jnDdkPFjOt5IDS9knhsnt0rZLxBZQJaREPB5o=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnWzfO6Tqgu8j6x/0dKWjabzJK3ZpdeOV5Oqjtjnzm3y UlD93hjRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEbzXDPE3fe2InuPde67lu cnOpU4LgbBtGZYYFJ0/mtdZ9nrpomj6z/ybON08LOtovAAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-52937 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 3b23a32a63219f51a5298bc55a65ecee866e79d0 and fixed in 6.18.34 with commit 719007c3492f0f1f9e9cdbed8ac45ba45bb13eeb Issue introduced in 5.12 with commit 3b23a32a63219f51a5298bc55a65ecee866e79d0 and fixed in 7.0.11 with commit 05305e832be7b9d65b2b72caacf7d850b3942b2a Issue introduced in 5.12 with commit 3b23a32a63219f51a5298bc55a65ecee866e79d0 and fixed in 7.1 with commit bddc09212c24934643bd44fc794748d2bbb3b6cd Issue introduced in 5.4.103 with commit 176188cff67ec1aa55103647b61d02315cc38e98 Issue introduced in 5.10.21 with commit 1fc205d9e400f069ebf30d3faa6ec2bab2cbd7b4 Issue introduced in 5.11.4 with commit 4d0ae760c02c98fc78b78d3a0509896bc648ad1c Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-52937 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/net/tap.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/719007c3492f0f1f9e9cdbed8ac45ba45bb13eeb https://git.kernel.org/stable/c/05305e832be7b9d65b2b72caacf7d850b3942b2a https://git.kernel.org/stable/c/bddc09212c24934643bd44fc794748d2bbb3b6cd