Description
In the Linux kernel, the following vulnerability has been resolved: USB: core: Limit the length of unkillable synchronous timeouts The usb_control_msg(), usb_bulk_msg(), and usb_interrupt_msg() APIs in usbcore allow unlimited timeout durations. And since they use uninterruptible waits, this leaves open the possibility of hanging a task for an indefinitely long time, with no way to kill it short of unplugging the target device. To prevent this sort of problem, enforce a maximum limit on the length of these unkillable timeouts. The limit chosen here, somewhat arbitrarily, is 60 seconds. On many systems (although not all) this is short enough to avoid triggering the kernel's hung-task detector. In addition, clear up the ambiguity of negative timeout values by treating them the same as 0, i.e., using the maximum allowed timeout.
Product status
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 4e86f5b79e62ded7e3c3ebd688cf5775e618148a
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 06d2bbc4c66c6b0e8a43728c4949026026a5be67
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 6c62935670acdbb7687ced20494923b66fbb0367
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 659c0c7d50a4b0f6aa197c4c098cfd91daf63862
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 24b31a227f679a942d820840a4dea7f0c09a387f
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 64f3d75633aedc12bdff220e9a4337177430bd9d
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 2d34cb4d1d6283b4be9c78f4a83ed6956d3069ec
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 1015c27a5e1a63efae2b18a9901494474b4d1dc3
2.6.12
Any version before 2.6.12
5.10.253 (semver)
5.15.203 (semver)
6.1.167 (semver)
6.6.130 (semver)
6.12.78 (semver)
6.18.19 (semver)
6.19.9 (semver)
7.0 (original_commit_for_fix)
References
git.kernel.org/...c/4e86f5b79e62ded7e3c3ebd688cf5775e618148a
git.kernel.org/...c/06d2bbc4c66c6b0e8a43728c4949026026a5be67
git.kernel.org/...c/6c62935670acdbb7687ced20494923b66fbb0367
git.kernel.org/...c/659c0c7d50a4b0f6aa197c4c098cfd91daf63862
git.kernel.org/...c/24b31a227f679a942d820840a4dea7f0c09a387f
git.kernel.org/...c/64f3d75633aedc12bdff220e9a4337177430bd9d
git.kernel.org/...c/2d34cb4d1d6283b4be9c78f4a83ed6956d3069ec
git.kernel.org/...c/1015c27a5e1a63efae2b18a9901494474b4d1dc3