Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 2e4c7553cd6f9c68bb741582dcb614edcbeca70f before aee2fde0f39e2b667084f4d5cc323a5c5543d733; affected 2e4c7553cd6f9c68bb741582dcb614edcbeca70f before 1625827648f4e1595ea6ba5521bc87ee5088b32b; affected 2e4c7553cd6f9c68bb741582dcb614edcbeca70f before f3d31484b3f26d63c09e5569ebfaa1079a17f171; affected 2e4c7553cd6f9c68bb741582dcb614edcbeca70f before 7411de0ce3b45286de1de82526795658ea6eacb0; affected 2e4c7553cd6f9c68bb741582dcb614edcbeca70f before 5eb5c72c72fef76cb765ef1669b62b6a3ba1bfc8 |
| Linux / Linux | affected 3.15; unaffected 0 before 3.15; unaffected 6.6.160 through 6.6.*; unaffected 6.12.111 through 6.12.*; unaffected 6.18.51 through 6.18.*; unaffected 7.2.5 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/aee2fde0f39e2b667084f4d5cc323a5c5543d733
- https://git.kernel.org/stable/c/1625827648f4e1595ea6ba5521bc87ee5088b32b
- https://git.kernel.org/stable/c/f3d31484b3f26d63c09e5569ebfaa1079a17f171
- https://git.kernel.org/stable/c/7411de0ce3b45286de1de82526795658ea6eacb0
- https://git.kernel.org/stable/c/5eb5c72c72fef76cb765ef1669b62b6a3ba1bfc8