drm/amdgpu/vcn: fix integer overflow in dec_msg buffer count check
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.1.188, 6.6.157, 6.12.110, 6.18.51, 5.16, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu/vcn: fix integer overflow in dec_msg buffer count check If the supplied msg[2] (num_buffers) is 0x3FFFFFFF, the expression 6 + num_buffers * 4 wraps to 2 and the bounds check passes, letting the parser loop far past the end of the message BO. Triggering it additionally requires a ~4GiB mapping so that msg[1] survives the earlier "header does not fit in BO" check. Rewrite the test in division form, which is overflow-free by construction. Also update the message to reflect that msg is invalid.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 88411caee8f576d6b5abf6531232fcc0ce756dc5 · fixed in c2340281be4ddacb8c203e2bce59b126d1d6c4c8; From c72a8b4dc6d598e3831ef3abd9c6527dfbf4810e · fixed in 6dceaeceaa7c8396339f3ea34b0110cb912ca61b; From 7688143ca62edeecacb3ba0a2cea129dbd262a18 · fixed in 47799e1f893d47d8af231710a61065e3ec8a13e8; From 63b51e8a9d54317d31cc3856c1e12407070d5fc2 · fixed in 7e28853c78c20bb8ba4c1dba702430cd05e09f76; From b193019860d61e92da395eae2011f2f6716b182f · fixed in 9ae19bd60891bea0a7b7504cc8dbfe74570ac3b3; From b193019860d61e92da395eae2011f2f6716b182f · fixed in 4d7390530853eb7befda9cc786e4c86e8ad7ac9e; From 6.1.175 · fixed in 6.1.188; From 6.6.140 · fixed in 6.6.157; From 6.12.90 · fixed in 6.12.110; From 6.18.32 · fixed in 6.18.51; From 5.15.209 · fixed in 5.16; From 7.0.9 · fixed in 7.1
- Linux Linux
7.1
- KernelLinux
fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.51; From 6.19.0 · fixed in 7.2.5