CVE-2022-50022

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-50022
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50022.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50022
Downstream
Related
Published
2025-06-18T11:15:30Z
Modified
2025-08-09T20:01:26Z
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

drivers:md:fix a potential use-after-free bug

In line 2884, "raid5releasestripe(sh);" drops the reference to sh and may cause sh to be released. However, sh is subsequently used in lines 2886 "if (sh->batchhead && sh != sh->batchhead)". This may result in an use-after-free bug.

It can be fixed by moving "raid5releasestripe(sh);" to the bottom of the function.

References

Affected packages