Bug 2122228 (CVE-2022-3028) - CVE-2022-3028 kernel: race condition in xfrm_probe_algs can lead to OOB read/write
Summary: CVE-2022-3028 kernel: race condition in xfrm_probe_algs can lead to OOB read/...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2022-3028
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2122366 2122369 2122370 2122371 2122372
Blocks: 2115734
TreeView+ depends on / blocked
 
Reported: 2022-08-29 14:33 UTC by Mauro Matteo Cascella
Modified: 2024-02-13 01:11 UTC (History)
50 users (show)

Fixed In Version: kernel 6.0-rc3
Doc Type: If docs needed, set a value
Doc Text:
A race condition was found in the Linux kernel's IP framework for transforming packets (XFRM subsystem) when multiple calls to xfrm_probe_algs occurred simultaneously. This flaw could allow a local attacker to potentially trigger an out-of-bounds write or leak kernel heap memory by performing an out-of-bounds read and copying it into a socket.
Clone Of:
Environment:
Last Closed: 2023-05-16 19:14:50 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:2148 0 None None None 2023-05-09 07:11:37 UTC
Red Hat Product Errata RHSA-2023:2458 0 None None None 2023-05-09 07:50:38 UTC
Red Hat Product Errata RHSA-2023:2736 0 None None None 2023-05-16 08:04:53 UTC
Red Hat Product Errata RHSA-2023:2951 0 None None None 2023-05-16 08:33:44 UTC
Red Hat Product Errata RHSA-2024:0412 0 None None None 2024-01-24 16:42:41 UTC

Description Mauro Matteo Cascella 2022-08-29 14:33:17 UTC
The function *xfrm_probe_algs* updates the availability field of items in the authentication algorithms list (*aalg_list* variable), but this update can occur simultaneously with another invocation of *xfrm_probe_algs*, allowing an attacker to potentially trigger either an OOB write or leaking kernel heap memory by performing an OOB read and copying it into a socket.

Upstream references:
https://lore.kernel.org/all/YtoWqEkKzvimzWS5@gondor.apana.org.au/T/
https://github.com/torvalds/linux/commit/ba953a9d89a00c078b85f4b190bc1dde66fe16b5

Comment 2 Mauro Matteo Cascella 2022-08-29 21:18:00 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2122366]

Comment 7 errata-xmlrpc 2023-05-09 07:11:34 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:2148 https://access.redhat.com/errata/RHSA-2023:2148

Comment 8 errata-xmlrpc 2023-05-09 07:50:34 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:2458 https://access.redhat.com/errata/RHSA-2023:2458

Comment 9 errata-xmlrpc 2023-05-16 08:04:50 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:2736 https://access.redhat.com/errata/RHSA-2023:2736

Comment 10 errata-xmlrpc 2023-05-16 08:33:41 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:2951 https://access.redhat.com/errata/RHSA-2023:2951

Comment 11 Product Security DevOps Team 2023-05-16 19:14:47 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-3028

Comment 14 errata-xmlrpc 2024-01-24 16:42:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2024:0412 https://access.redhat.com/errata/RHSA-2024:0412


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