drm/msm/snapshot: fix dumping of the unaligned regions
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 98659487b845c05b6bed85d881713545db674c7c · < 0c90ececfad3fc5c4c43a75ece0e2d736ab3def1| No fix yet |
| Linux Linux |
|
|
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/
From the CVE record · Linux
The Linux kernel’s drm/msm snapshot code incorrectly handles DSI data regions shifted by four bytes, so the last registers in a region may not be printed accurately. The fix also addresses a 16-fold memory overallocation in msm_disp_state_dump_regs(). The input does not describe an attacker action, access requirements, or user interaction.
Engineers running Linux kernels with drm/msm snapshot code should check their builds; affected versions are not specified.