CVE-2026-63957: USB: serial: safe_serial: fix memory corruption with small endpoint
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
USB: serial: safe_serial: fix memory corruption with small endpoint
Make sure that the bulk-out buffer size is at least eight bytes to avoid user-controlled slab corruption in "safe" mode should a malicious device report a smaller size.
The Linux kernel CVE team has assigned CVE-2026-63957 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.10.259 with commit e3a1d6eee25dc96b1d2db0ecd9d8741e92056476 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.15.210 with commit c7336c0fba5c959249f3d793d33076b992ec3ee4 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.176 with commit 161ea0e5236f5f051d2d85d6c54dd08ee9dc7ba4 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.143 with commit 9b3145b3001fb24de1da72d1deb0bea70e5a078b Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.93 with commit a550ed2117ca4709d38f713933ff924a83942e41 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.35 with commit f793b67d41e5fab719c5a90baa77cbd2fe259517 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.0.12 with commit 857b3cc73f91871ae4433f8b97c4670b78f8dc96 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.1 with commit 438061ed1ad85e6743e2dce826671772d81089ec
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-63957
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/usb/serial/safe_serial.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/e3a1d6eee25dc96b1d2db0ecd9d8741e92056476 https://git.kernel.org/stable/c/c7336c0fba5c959249f3d793d33076b992ec3ee4 https://git.kernel.org/stable/c/161ea0e5236f5f051d2d85d6c54dd08ee9dc7ba4 https://git.kernel.org/stable/c/9b3145b3001fb24de1da72d1deb0bea70e5a078b https://git.kernel.org/stable/c/a550ed2117ca4709d38f713933ff924a83942e41 https://git.kernel.org/stable/c/f793b67d41e5fab719c5a90baa77cbd2fe259517 https://git.kernel.org/stable/c/857b3cc73f91871ae4433f8b97c4670b78f8dc96 https://git.kernel.org/stable/c/438061ed1ad85e6743e2dce826671772d81089ec