genetlink: pin family module during policy dump
- 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.6.160, 6.12.112, 6.18.53, 7.2.7
- 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: genetlink: pin family module during policy dump The generic netlink controller's policy dump keeps pointers to the target family's operation and policy tables in its callback state. A dump may be split across multiple skbs and remain pending after the initial request. Netlink pins the module which owns the dump callback, but in this case that is the controller's owner rather than the target family's owner. The target family can consequently be unregistered and its module unloaded while a policy dump is pending. Advancing the dump then dereferences policy memory from the unloaded module. Take a reference to the target family's module when the dump starts. Drop it from the error and done paths. This matches the lifetime for which the dump context retains the family and policy pointers.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
Version range not reported
- Linux Linux
5.8
- KernelLinux
From 5.8.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.112; From 6.13.0 · fixed in 6.18.53; From 6.19.0 · fixed in 7.2.7
References 8
git.kernel.org
- stable/c/7ee2c0f82354da9bae04b14e0e5b2037d2de48a7
- stable/c/7f71414c206a0e2babf4ec2756c0d15776c5dfd2
- stable/c/ad01ec35360e803670168d63a856629d6aeaec48
- stable/c/1a345d95e59a99e25404138b5a1ec2edcb03269f
- stable/c/6e4d746e55c83c240cffce92356763d16b236af5
- stable/c/508387ad95ef9c13aa6431678c39763e882da2dc
- stable/c/6d8e653fcf1c90310797eeba8e5fafe9ccc3de9e
- stable/c/6a1094c34d176827b2b173e163dcc964a13af93f