iommu/tegra241-cmdqv: Don't fall back to a freed smmu after devm_krealloc()
- 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.12.114, 6.18.57, 7.2.6
- 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: iommu/tegra241-cmdqv: Don't fall back to a freed smmu after devm_krealloc() __tegra241_cmdqv_probe() uses devm_krealloc() to grow @smmu into the larger tegra241_cmdqv, which frees the original @smmu once it relocates. A failure after that returned NULL, and the caller then dereferenced the freed @smmu on its fallback path. Return an int and take @smmu by reference instead, then update *smmu to the reallocated pointer after devm_krealloc() succeeds, so the caller and its fallback path both use the live @smmu rather than the freed original.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 918eb5c856f6ce4cf93b4b38e4b5e156905c5943 · fixed in ea2edb27ef2648d8687cd0fc3ec3ba1793436e7e; From 918eb5c856f6ce4cf93b4b38e4b5e156905c5943 · fixed in 268cbe3a36ae57a2ec09601f343b92f6f092d505; From 918eb5c856f6ce4cf93b4b38e4b5e156905c5943 · fixed in 86197679b293f0601c3331d545f99a70a7780aa9; From 918eb5c856f6ce4cf93b4b38e4b5e156905c5943 · fixed in d4d05f55e9da646ec03adfa77260eb46f4163749
- Linux Linux
6.12
- KernelLinux
From 6.12.0 · fixed in 6.12.114; From 6.13.0 · fixed in 6.18.57; From 6.19.0 · fixed in 7.2.6