CVE-2026-53150: thunderbolt: Reject zero-length property entries in validator
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
thunderbolt: Reject zero-length property entries in validator
tb_property_entry_valid() accepts entries with length == 0 for DIRECTORY, DATA, and TEXT types. A zero-length TEXT entry passes validation but causes an underflow in the null-termination logic:
property->value.text[property->length * 4 - 1] = '\0';
When property->length is 0 this writes to offset -1 relative to the allocation.
Reject zero-length entries early in the validator since they have no valid representation in the XDomain property protocol.
The Linux kernel CVE team has assigned CVE-2026-53150 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 5.10.259 with commit 581c2053ab4dbe27e83c9e62deb4c73aa8dc0c3a Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 5.15.210 with commit 35d6c9252a152e756768a26dbf216b9dd9dd8e92 Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 6.1.176 with commit 99d9dbad1463afb510d42c9714f846361d1b726d Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 6.6.143 with commit 5f56bc6bddffe8710ba0ba8844023b5a44ca90e4 Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 6.12.94 with commit ca11e7da4fba4b394f69e16448f4463c44c84de6 Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 6.18.36 with commit 2e0ddac549ebd713eb9f4a15b6496e3440a17d8b Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 7.0.13 with commit 3b6e68cb97f725385010264a873e14a3921b6b8a Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 7.1 with commit cff8eb65d1eafe7793e54b4d0cf6bf831644630b
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-53150
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/581c2053ab4dbe27e83c9e62deb4c73aa8dc0c3a https://git.kernel.org/stable/c/35d6c9252a152e756768a26dbf216b9dd9dd8e92 https://git.kernel.org/stable/c/99d9dbad1463afb510d42c9714f846361d1b726d https://git.kernel.org/stable/c/5f56bc6bddffe8710ba0ba8844023b5a44ca90e4 https://git.kernel.org/stable/c/ca11e7da4fba4b394f69e16448f4463c44c84de6 https://git.kernel.org/stable/c/2e0ddac549ebd713eb9f4a15b6496e3440a17d8b https://git.kernel.org/stable/c/3b6e68cb97f725385010264a873e14a3921b6b8a https://git.kernel.org/stable/c/cff8eb65d1eafe7793e54b4d0cf6bf831644630b