Linux
drm/msm/snapshot: fix dumping of the unaligned regions
In the Linux kernel, the following vulnerability has been resolved: drm/msm/snapshot: fix dumping of the unaligned regions The snapshotting code internally aligns data segment to 16 bytes. This works fine for DPU code (where most of the regions are aligned), but fails for snapshotting of the DSI data (because DSI data region is shifted by 4 bytes). Fix the code by removing length alignment and by accurately printing last registers in the region. While reworking the code also fix the 16x memory overallocation in msm_disp_state_dump_regs(). Patchwork: https://patchwork.freedesktop.org/patch/725449/
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 98659487b845c05b6bed85d881713545db674c7c, < 8fb070cf95847b29ef6cb15ec2c0de2bf4704676
- >= 98659487b845c05b6bed85d881713545db674c7c, < cecd34e046121d788a70b5c8b4f8a88916637953
- >= 98659487b845c05b6bed85d881713545db674c7c, < 070e40acc59ef7bedba0314f59971ba87fcc8ab0
- >= 98659487b845c05b6bed85d881713545db674c7c, < 1ef79be774706dddcfcace0331fa7ff32a73c73e
- >= 98659487b845c05b6bed85d881713545db674c7c, < cdd1aaf0ee962f50810b9aef7928f2313989d55f
- >= 98659487b845c05b6bed85d881713545db674c7c, < 0c90ececfad3fc5c4c43a75ece0e2d736ab3def1
- >= 98659487b845c05b6bed85d881713545db674c7c, < 76824d2467feb1828b745d6add2541918d7be3da
Fixed in 8fb070cf95847b29ef6cb15ec2c0de2bf4704676, cecd34e046121d788a70b5c8b4f8a88916637953, 070e40acc59ef7bedba0314f59971ba87fcc8ab0, 1ef79be774706dddcfcace0331fa7ff32a73c73e, cdd1aaf0ee962f50810b9aef7928f2313989d55f, 0c90ececfad3fc5c4c43a75ece0e2d736ab3def1, 76824d2467feb1828b745d6add2541918d7be3da
- 5.14
Fixed in 0, 5.15.209, 6.1.175, 6.6.142, 6.12.92, 6.18.34, 7.0.11, 7.1
Mitigation
Upgrade Linux to 8fb070cf95847b29ef6cb15ec2c0de2bf4704676 or cecd34e046121d788a70b5c8b4f8a88916637953 or 070e40acc59ef7bedba0314f59971ba87fcc8ab0 or 1ef79be774706dddcfcace0331fa7ff32a73c73e or cdd1aaf0ee962f50810b9aef7928f2313989d55f or 0c90ececfad3fc5c4c43a75ece0e2d736ab3def1 or 76824d2467feb1828b745d6add2541918d7be3da or later.
Upgrade Linux to 0 or 5.15.209 or 6.1.175 or 6.6.142 or 6.12.92 or 6.18.34 or 7.0.11 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.