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 44B09277C81 for ; Sun, 19 Jul 2026 14:58:06 +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=1784473089; cv=none; b=L7WlDfXnxauJhOoO+QaUpi5U9ve7husy7GxW07XWzlANltwBqbyF4J/WtkafJrZd5eOBrOL9DE8wBr7xHgc/N1EGYxbXhTuCibYY6HYbNWGjrD9YhIq3rlcndrG2IIjiSf0EfW9QCEX6UWRDul7lGskMQe/Tne/xQ1ghRyxybTs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784473089; c=relaxed/simple; bh=b8VUbrg/xEYTO12N+JZKeALvXBur/zOKPFqoQoQt4fs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=a35rOFFGvnljit8EDRrjzx0gJ5PQu6NyXrlGti0XwyTOlVyRfVfZ+D9f1LbVylAMzWufQxOED/KUWlmTXWkXfNk0D2JOnAX3IDDi7pmffyLQIXdlCnTNH+7FSwpMC+zowxVWa19OdCDDJGloPRsMJKzI1B2tmcPldb59ixUbIHI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Vh/QbMzj; 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="Vh/QbMzj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC2EB1F00A3A; Sun, 19 Jul 2026 14:58:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784473086; bh=8tPcGGz9QWtpUjdvMSGf3Hwum/kY93OFBaoe1o/dd0c=; h=From:To:Cc:Subject:Date:Reply-To; b=Vh/QbMzjnIxE+5CuCgmb1G9qKSfIEgqkgFkEChH7oKxNV3Wn8vMmMxgsneBmaP+EP uHvZ5L8mzN63yDAiQBzYIoU0cEC9mdy4fUqJ+TEf0V5wh6n9HTrIpZ+G3Bs242gmoH 9Xqrnt8JnlRk72uIpRmBS0wFMOy3/Bivtmtgajxs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63892: thunderbolt: property: Reject dir_len < 4 to prevent size_t underflow Date: Sun, 19 Jul 2026 16:55:52 +0200 Message-ID: <2026071941-CVE-2026-63892-1bb4@gregkh> X-Mailer: git-send-email 2.55.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=4462; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2BAGqBZ/lHbvxVXIOleUXMKUz3ak0n+vgTS1Qxks0sw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxT3Ofvxc4LyP0q8jj4eykp0amfcnbjH5Vsku2rfrcd dnCqP9yRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykayvDgnbxZxKiZXeuX9JX Lbx0off9VdN53xgWtAR9DNqv69Wb8K5zilPBU2ce8RleAA== 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: thunderbolt: property: Reject dir_len < 4 to prevent size_t underflow On the non-root path, __tb_property_parse_dir() takes dir_len from entry->length (u16 widened to size_t). Two distinct OOB conditions follow when entry->length < 4: 1. The non-root path begins with kmemdup(&block[dir_offset], sizeof(*dir->uuid), ...) which always reads 4 dwords from dir_offset. tb_property_entry_valid() only enforces dir_offset + entry->length <= block_len, so a crafted entry with dir_offset close to the end of the property block and entry->length in 0..3 passes that gate but lets the UUID copy run off the block (e.g. dir_offset = 497, dir_len = 3 in a 500-dword block reads block[497..501]). 2. After the kmemdup, content_len = dir_len - 4 underflows size_t to ~SIZE_MAX, nentries becomes SIZE_MAX / 4, and the entry walk runs OOB on each iteration until an entry fails validation or the kernel oopses on an unmapped page. Reject dir_len < 4 on the non-root path *before* the UUID kmemdup, which closes both holes. Also move INIT_LIST_HEAD(&dir->properties) up to immediately after the dir allocation so the new error-return path (and the existing uuid-alloc failure path) calling tb_property_free_dir() sees a walkable list rather than the zero-initialized NULL next/prev that list_for_each_entry_safe() would oops on. The Linux kernel CVE team has assigned CVE-2026-63892 to this issue. Affected and fixed versions =========================== Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 5.10.259 with commit 37abc4504fa19d8f9f1e87792e8a2b8fdb308e40 Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 5.15.210 with commit e2d4d51cf5785815fa4e91e0c019e3eb2506a84c Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 6.1.176 with commit de618299190b418291609e6921557253bd417e25 Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 6.6.143 with commit 5506c825f14d810f0690b1f4367cb7249ebb387a Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 6.12.93 with commit 542a13890b742099c461d70920e97b14e568f6ec Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 6.18.35 with commit d548179adcc87e1bc66b17e00352a1f536e76065 Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 7.0.12 with commit 3bec49ca55e08fb085cc4318f24b1b37eaab28cb Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 7.1 with commit de21b59c29e31c5108ddc04210631bbfab81b997 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-63892 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/thunderbolt/property.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/37abc4504fa19d8f9f1e87792e8a2b8fdb308e40 https://git.kernel.org/stable/c/e2d4d51cf5785815fa4e91e0c019e3eb2506a84c https://git.kernel.org/stable/c/de618299190b418291609e6921557253bd417e25 https://git.kernel.org/stable/c/5506c825f14d810f0690b1f4367cb7249ebb387a https://git.kernel.org/stable/c/542a13890b742099c461d70920e97b14e568f6ec https://git.kernel.org/stable/c/d548179adcc87e1bc66b17e00352a1f536e76065 https://git.kernel.org/stable/c/3bec49ca55e08fb085cc4318f24b1b37eaab28cb https://git.kernel.org/stable/c/de21b59c29e31c5108ddc04210631bbfab81b997