drm/amd/display: Fix NULL deref and buffer over-read in SDP debugfs
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.15.210, Kernel 6.1.176, Kernel 5.10.259 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Fix NULL deref and buffer over-read in SDP debugfs [Why & How] dp_sdp_message_debugfs_write() dereferences connector->base.state->crtc without checking for NULL. A connector can be connected but not bound to any CRTC (e.g. after hot-plug before the next atomic commit), causing a kernel crash when writing to the sdp_message debugfs node. The function also ignores the user-provided size argument and always passes 36 bytes to copy_from_user(), reading past the user buffer when size < 36. Fix both issues by: - Returning -ENODEV when connector->base.state or state->crtc is NULL - Clamping write_size to min(size, sizeof(data)) (cherry picked from commit 6ab4c36a522842ff70474a1c0af2e40e50fc8300)
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5.11 <5.15.210, >=5.16 <6.1.176, >=5.2 <5.10.259, >=6.13 <6.18.36, >=6.19 <7.0.13, >=6.2 <6.6.143, >=6.7 <6.12.94, =7.1, >=c7ba3653e9773256b2b08508a2ed2ca28ea7566b <7fc4fab4acc307ad2903312c195872b2953d32c3, >=c7ba3653e9773256b2b08508a2ed2ca28ea7566b <a2de1d71891a038a9346b2c1a72b88c8350f2479, >=c7ba3653e9773256b2b08508a2ed2ca28ea7566b <adf67034b1f61f7119295208085bfd43f85f56af, >=c7ba3653e9773256b2b08508a2ed2ca28ea7566b <b781f90a9528555c709e59789550893581ef0be4, >=c7ba3653e9773256b2b08508a2ed2ca28ea7566b <bb6f705b73b5f191f14ad004e2c8c4b615806187, >=c7ba3653e9773256b2b08508a2ed2ca28ea7566b <c90954cdea4d6998ec345de0d840d030c145b89e, >=c7ba3653e9773256b2b08508a2ed2ca28ea7566b <ee9cfcf77a8e8af637396dc00966df5f701e661c, =5.2, >=c7ba3653e9773256b2b08508a2ed2ca28ea7566b <7ae95c0275c330b5dbae806f8e431720edad776f | 5.15.210, 6.1.176, 5.10.259, 6.18.36, 7.0.13, 6.6.143, 6.12.94, 7fc4fab4acc307ad2903312c195872b2953d32c3, a2de1d71891a038a9346b2c1a72b88c8350f2479, adf67034b1f61f7119295208085bfd43f85f56af, b781f90a9528555c709e59789550893581ef0be4, bb6f705b73b5f191f14ad004e2c8c4b615806187, c90954cdea4d6998ec345de0d840d030c145b89e, ee9cfcf77a8e8af637396dc00966df5f701e661c, 7ae95c0275c330b5dbae806f8e431720edad776f |
| linux-kernel: Kernel | >=5.11.0 <5.15.210, >=5.16.0 <6.1.176, >=5.2.0 <5.10.259, >=6.13.0 <6.18.36, >=6.19.0 <7.0.13, >=6.2.0 <6.6.143, >=6.7.0 <6.12.94 | 5.15.210, 6.1.176, 5.10.259, 6.18.36, 7.0.13, 6.6.143, 6.12.94 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket