Bug 2122228 (CVE-2022-3028) - CVE-2022-3028 kernel: race condition in xfrm_probe_algs can lead to out-of-bounds read/write
Summary: CVE-2022-3028 kernel: race condition in xfrm_probe_algs can lead to out-of-bo...
Keywords:
Status: NEW
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: 2122369 2122370 2122371 2122372 2122366
Blocks: 2115734
TreeView+ depends on / blocked
 
Reported: 2022-08-29 14:33 UTC by Mauro Matteo Cascella
Modified: 2022-08-31 11:50 UTC (History)
52 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:


Attachments (Terms of Use)

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]


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