KVM: Move kvm_io_bus_get_dev() locking responsibilities to callers
- 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 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 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
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: KVM: Move kvm_io_bus_get_dev() locking responsibilities to callers kvm_io_bus_get_dev() returns a device that is only matched by the address, and nothing else. This can cause a lifetime issue if the matched device is not the expected type, as by the time the caller can introspect the object, it might be gone (the srcu lock having been dropped). Given that there is only a single user of this helper, the simplest option is to move the locking responsibility to the caller, which can keep the srcu lock held for as long as it wants. Note that this aligns with other kvm_io_bus*() helpers, which already require the srcu lock to be held by the callers.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 8a39d00670f0792c1186e442e1dd28fe0326f2ee · fixed in f398b7d92cd999191249830b9171c9bd787a9a91; From 8a39d00670f0792c1186e442e1dd28fe0326f2ee · fixed in 1b4a3c2f0509e7b0e65667f3c36676a849ee2755; From 8a39d00670f0792c1186e442e1dd28fe0326f2ee · fixed in cfe107b02a3c3f049e0dc15b6a36625f048eda2a; From 8a39d00670f0792c1186e442e1dd28fe0326f2ee · fixed in 90d35d2b8e47afd68fe2a4dd0eeb60bc71641775; From 8a39d00670f0792c1186e442e1dd28fe0326f2ee · fixed in e01071ea006c9b952125ed8b0cc90ac7bd356cce; From 8a39d00670f0792c1186e442e1dd28fe0326f2ee · fixed in 7099e7148f81c605bbc319b16ce0131540341560; From 8a39d00670f0792c1186e442e1dd28fe0326f2ee · fixed in 0cbae0e296d27ce4c4cce83e34d40c2bfd8133aa; From 8a39d00670f0792c1186e442e1dd28fe0326f2ee · fixed in 3a07249981629ace483ebbef81ef6b34c2d2afec
- Linux Linux
4.8
- KernelLinux
From 4.8.0 · fixed in 5.10.261; From 5.11.0 · fixed in 5.15.212; From 5.16.0 · fixed in 6.1.178; From 6.2.0 · fixed in 6.6.145; From 6.7.0 · fixed in 6.12.97; From 6.13.0 · fixed in 6.18.40; From 6.19.0 · fixed in 7.1.5
References 8
git.kernel.org
- stable/c/f398b7d92cd999191249830b9171c9bd787a9a91
- stable/c/1b4a3c2f0509e7b0e65667f3c36676a849ee2755
- stable/c/cfe107b02a3c3f049e0dc15b6a36625f048eda2a
- stable/c/90d35d2b8e47afd68fe2a4dd0eeb60bc71641775
- stable/c/e01071ea006c9b952125ed8b0cc90ac7bd356cce
- stable/c/7099e7148f81c605bbc319b16ce0131540341560
- stable/c/0cbae0e296d27ce4c4cce83e34d40c2bfd8133aa
- stable/c/3a07249981629ace483ebbef81ef6b34c2d2afec