Description
In the Linux kernel, the following vulnerability has been resolved: leds: uleds: Fix potential buffer overread The name string supplied by userspace is not guaranteed to be null-terminated, so using strchr() on it might result in a buffer overread. The same thing will happen when said string is used by the LED class device. Fix this by using strnchr() instead and explicitly check that the name string is properly null-terminated.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
e381322b0190c1253d347de3f28b5c37756fb651 to < a84c59121dfdc7b324f72dc5012aa8fe5e7d2d7baffectede381322b0190c1253d347de3f28b5c37756fb651 to < 5bb89e23729f3a59592d699a437bb001f24b8f67affectede381322b0190c1253d347de3f28b5c37756fb651 to < 5ad6f6c9209e5777b896def9876708853ae26d0daffectede381322b0190c1253d347de3f28b5c37756fb651 to < 8bf529571cca60fb8af65d6d034bdbbc99a9127caffectede381322b0190c1253d347de3f28b5c37756fb651 to < a91ac9fdac7385cbc98aeae55b4e5302125497a2affectede381322b0190c1253d347de3f28b5c37756fb651 to < 6dd51d84a9502553e58beade72823258871b8111affectede381322b0190c1253d347de3f28b5c37756fb651 to < 263ccdd627caeda6e980ed3c6e32bb4fd6b380b1affectede381322b0190c1253d347de3f28b5c37756fb651 to < c19fe864f667afc49d1391d764e20b66555bcf7aaffected
Linux Linux
Default version status: affected
4.10affected0 to < 4.10unaffected5.10.261 to ≤ 5.10.*unaffected5.15.212 to ≤ 5.15.*unaffected6.1.178 to ≤ 6.1.*unaffected6.6.145 to ≤ 6.6.*unaffected6.12.97 to ≤ 6.12.*unaffected6.18.40 to ≤ 6.18.*unaffected7.1.5 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/a84c59121dfdc7b324f72dc5012aa8fe5e7d2d7b ↗
- https://git.kernel.org/stable/c/5bb89e23729f3a59592d699a437bb001f24b8f67 ↗
- https://git.kernel.org/stable/c/5ad6f6c9209e5777b896def9876708853ae26d0d ↗
- https://git.kernel.org/stable/c/8bf529571cca60fb8af65d6d034bdbbc99a9127c ↗
- https://git.kernel.org/stable/c/a91ac9fdac7385cbc98aeae55b4e5302125497a2 ↗
- https://git.kernel.org/stable/c/6dd51d84a9502553e58beade72823258871b8111 ↗
- https://git.kernel.org/stable/c/263ccdd627caeda6e980ed3c6e32bb4fd6b380b1 ↗
- https://git.kernel.org/stable/c/c19fe864f667afc49d1391d764e20b66555bcf7a ↗