gpu: host1x: Avoid stack over-read in debug output helpers
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ebab3a25a0403bcbc0c40ef77d69d23270e45547, Kernel 41517c46002afd717f0f2d0975c740dd610f87fe, Kernel 4f9f0afdbdf513a49065207ff6b7e1d15051175a and 12 more.
In the Linux kernel, the following vulnerability has been resolved: gpu: host1x: Avoid stack over-read in debug output helpers host1x_debug_output() and host1x_debug_cont() used vsnprintf(), which returns the length the formatted string would have reached with an unbounded buffer. That return value was passed straight to o->fn as the number of bytes to emit. This could cause a read past end of the output buffer if a call to host1x_debug_* produced a string longer than 256 bytes. This only affected the debugfs files as the printk debug sink ignores the number of bytes. In practice, this is very unlikely to occur. Fix by switching to vscnprintf(), which returns the number of bytes actually written.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=6236451d83a720072053855fa63d51934024a707 <ebab3a25a0403bcbc0c40ef77d69d23270e45547, >=6236451d83a720072053855fa63d51934024a707 <41517c46002afd717f0f2d0975c740dd610f87fe, >=6236451d83a720072053855fa63d51934024a707 <4f9f0afdbdf513a49065207ff6b7e1d15051175a, >=6236451d83a720072053855fa63d51934024a707 <819dd96a6571f2b12496b080e5187ba3fa897232, >=6236451d83a720072053855fa63d51934024a707 <9ad7a6ccc7b839247663d57d3dbb4481dec492de, >=6236451d83a720072053855fa63d51934024a707 <b00290d1dc23a5ef9a0d3103aad1fe2274e86569, >=6236451d83a720072053855fa63d51934024a707 <bc17ac285fb708f22a8fa2c0ed32eceb1d37e6d6, >=6236451d83a720072053855fa63d51934024a707 <d7a560dc912756fd8b39b28b10818d931e863d2d, =3.10 | ebab3a25a0403bcbc0c40ef77d69d23270e45547, 41517c46002afd717f0f2d0975c740dd610f87fe, 4f9f0afdbdf513a49065207ff6b7e1d15051175a, 819dd96a6571f2b12496b080e5187ba3fa897232, 9ad7a6ccc7b839247663d57d3dbb4481dec492de, b00290d1dc23a5ef9a0d3103aad1fe2274e86569, bc17ac285fb708f22a8fa2c0ed32eceb1d37e6d6, d7a560dc912756fd8b39b28b10818d931e863d2d |
| linux-kernel: Kernel | >=5.11.0 <5.15.221, >=5.16.0 <6.1.188, >=6.13.0 <6.18.52, >=6.19.0 <7.2.6, >=6.2.0 <6.6.157, >=6.7.0 <6.12.110, >=3.10.0 <5.10.270 | 5.15.221, 6.1.188, 6.18.52, 7.2.6, 6.6.157, 6.12.110, 5.10.270 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket