Bug 2265520 (CVE-2024-26583) - CVE-2024-26583 kernel: tls: race between async notify and socket close
Summary: CVE-2024-26583 kernel: tls: race between async notify and socket close
Keywords:
Status: NEW
Alias: CVE-2024-26583
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2265535
Blocks: 2265516
TreeView+ depends on / blocked
 
Reported: 2024-02-22 14:29 UTC by Patrick Del Bello
Modified: 2024-05-20 01:14 UTC (History)
50 users (show)

Fixed In Version: kernel 6.8-rc5
Doc Type: If docs needed, set a value
Doc Text:
A race condition vulnerability was found in the tls subsystem of the Linux kernel. The submitting thread that calls recvmsg/sendmsg may exit as soon as the async crypto handler calls complete(); any code past that point risks touching already freed data. This could lead to a use-after-free issue and a denial of service condition.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2024:2634 0 None None None 2024-05-01 01:22:34 UTC
Red Hat Product Errata RHBA-2024:2650 0 None None None 2024-05-02 00:15:22 UTC
Red Hat Product Errata RHBA-2024:2686 0 None None None 2024-05-02 22:50:29 UTC
Red Hat Product Errata RHSA-2024:2394 0 None None None 2024-04-30 10:15:58 UTC

Description Patrick Del Bello 2024-02-22 14:29:07 UTC
The submitting thread (one which called recvmsg/sendmsg) may exit as soon as the async crypto handler calls complete() so any code past that point risks touching already freed data.

Try to avoid the locking and extra flags altogether. Have the main thread hold an extra reference, this way we can depend solely on the atomic ref counter for synchronization.

Comment 2 Mauro Matteo Cascella 2024-02-22 15:37:37 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2265535]

Comment 6 errata-xmlrpc 2024-04-30 10:15:56 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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


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