Bug 2373672 (CVE-2022-50022) - CVE-2022-50022 kernel: drivers:md:fix a potential use-after-free bug
Summary: CVE-2022-50022 kernel: drivers:md:fix a potential use-after-free bug
Keywords:
Status: NEW
Alias: CVE-2022-50022
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 12:13 UTC by OSIDB Bzimport
Modified: 2025-06-19 02:39 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 12:13:14 UTC
In the Linux kernel, the following vulnerability has been resolved:

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

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

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

Comment 1 Avinash Hanwate 2025-06-18 18:26:28 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061835-CVE-2022-50022-98b6@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.