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-09-23 07:18 UTC (History)
4 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2025:12238 0 None None None 2025-07-30 06:05:15 UTC
Red Hat Product Errata RHSA-2025:12623 0 None None None 2025-08-04 05:09:36 UTC
Red Hat Product Errata RHSA-2025:13776 0 None None None 2025-08-13 02:41:38 UTC
Red Hat Product Errata RHSA-2025:14054 0 None None None 2025-08-19 00:18:36 UTC
Red Hat Product Errata RHSA-2025:14094 0 None None None 2025-08-19 13:16:59 UTC
Red Hat Product Errata RHSA-2025:14746 0 None None None 2025-08-27 11:40:54 UTC
Red Hat Product Errata RHSA-2025:14748 0 None None None 2025-08-27 12:39:52 UTC

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

Comment 5 errata-xmlrpc 2025-07-30 06:05:14 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On

Via RHSA-2025:12238 https://access.redhat.com/errata/RHSA-2025:12238

Comment 6 errata-xmlrpc 2025-08-04 05:09:35 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support

Via RHSA-2025:12623 https://access.redhat.com/errata/RHSA-2025:12623

Comment 7 errata-xmlrpc 2025-08-13 02:41:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service

Via RHSA-2025:13776 https://access.redhat.com/errata/RHSA-2025:13776

Comment 8 errata-xmlrpc 2025-08-19 00:18:35 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2025:14054 https://access.redhat.com/errata/RHSA-2025:14054

Comment 9 errata-xmlrpc 2025-08-19 13:16:58 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2025:14094 https://access.redhat.com/errata/RHSA-2025:14094

Comment 10 errata-xmlrpc 2025-08-27 11:40:52 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2025:14746 https://access.redhat.com/errata/RHSA-2025:14746

Comment 11 errata-xmlrpc 2025-08-27 12:39:51 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2025:14748 https://access.redhat.com/errata/RHSA-2025:14748


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