dmaengine: ste_dma40: Fix memcpy channel parsing
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: ste_dma40: Fix memcpy channel parsing
d40_of_probe() validates the memcpy-channels property against D40_MEMCPY_MAX_CHANS, but reads the property directly into a smaller global array. A long property can therefore overwrite adjacent data. The mutable global also lets a later DMA40 instance replace the memcpy channel mapping used for future allocations on an earlier instance.
Store the mapping in the per-device platform data, validate the property against that storage, and check the property read result. The property is required and d40_probe() always populates the platform data, so remove the obsolete global mapping and fallback.
| Product | Versions |
|---|---|
| Linux Linux | a7dacb68b35a193d9bdaabde1e4e98140d81a991 to before d23c160c9d42e7a0665519fadf75dc4a6e54abe6 Affecteda7dacb68b35a193d9bdaabde1e4e98140d81a991 to before 43ad2d1a301caf187aa3cdf443f05f57fc719a65 Affecteda7dacb68b35a193d9bdaabde1e4e98140d81a991 to before c5cd415a0bb86587c2e34bbe203d2cc33150a0ad Affecteda7dacb68b35a193d9bdaabde1e4e98140d81a991 to before 8a68c0d3112b551dafe822fe384b0ac1881ee35a Affecteda7dacb68b35a193d9bdaabde1e4e98140d81a991 to before f2baf04a695de4f952513cb00ccf0338c6db2e00 Affected |
| Linux Linux | 3.11 Affectedbefore 3.11 Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/d23c160c9d42e7a0665519fadf75dc4a6e54abe6
- https://git.kernel.org/stable/c/43ad2d1a301caf187aa3cdf443f05f57fc719a65
- https://git.kernel.org/stable/c/c5cd415a0bb86587c2e34bbe203d2cc33150a0ad
- https://git.kernel.org/stable/c/8a68c0d3112b551dafe822fe384b0ac1881ee35a
- https://git.kernel.org/stable/c/f2baf04a695de4f952513cb00ccf0338c6db2e00
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.