USB: gadget: ffs: fix mm lifetime handling
- 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.111, 6.18.51, 7.2.5
- 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: USB: gadget: ffs: fix mm lifetime handling io_data stores a pointer to the submitting task's mm_struct, but does not currently hold a reference to it while async requests are pending. This can result in a use-after-free if the task exits before completion handling finishes. Take a reference with mmgrab() when queuing the read request and release it with mmdrop() on request completion.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 2e4c7553cd6f9c68bb741582dcb614edcbeca70f · fixed in aee2fde0f39e2b667084f4d5cc323a5c5543d733; From 2e4c7553cd6f9c68bb741582dcb614edcbeca70f · fixed in 1625827648f4e1595ea6ba5521bc87ee5088b32b; From 2e4c7553cd6f9c68bb741582dcb614edcbeca70f · fixed in f3d31484b3f26d63c09e5569ebfaa1079a17f171; From 2e4c7553cd6f9c68bb741582dcb614edcbeca70f · fixed in 7411de0ce3b45286de1de82526795658ea6eacb0; From 2e4c7553cd6f9c68bb741582dcb614edcbeca70f · fixed in 5eb5c72c72fef76cb765ef1669b62b6a3ba1bfc8
- Linux Linux
3.15
- KernelLinux
From 3.15.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.111; From 6.13.0 · fixed in 6.18.51; From 6.19.0 · fixed in 7.2.5