CVE-2023-6531: Kernel: gc's deletion of an skb races with unix_stream_read_generic() leading to uaf

Published Dec 5, 2023
·
Updated

A use-after-free flaw was found in the Linux Kernel due to a race problem in the unix garbage collector's deletion of SKB races with unixstreamreadgeneric() on the socket that the SKB is queued on.

Other sources

If the Unix GC's deletion of an SKB races with unixstreamreadgeneric() on the socket that the SKB was queued up on, we get a race condition, leading to UAF, because it is supposed to be impossible to run these operations in parallel on the same socket:

- unixstreamreadgeneric() assumes that mutexlock(&u->iolock) protects sk->skreceivequeue against element removal, so it holds a pointer to an SKB on the sk->skreceivequeue without any other protection - scaninflight() only takes spinlock(&x->skreceivequeue.lock) when stealing SKBs from the skreceivequeue

— Red Hat

Kernel: gc's deletion of an skb races with unixstreamreadgeneric() leading to uaf

— Microsoft

Affected Software

13 affected componentsFixes available
Linux Linux kernel<6.7
Linux Linux kernel=6.7-rc1
Linux Linux kernel=6.7-rc2
Linux Linux kernel=6.7-rc3
Linux Linux kernel=6.7-rc4
redhat Enterprise Linux=9.0
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.27-1
redhat/Kernel<6.7
6.7
Microsoft cbl2 kernel 5.15.180.1-1
Microsoft azl3 kernel 6.6.92.2-1
Microsoft azl3 kernel 6.6.35.1-4
Microsoft cbl2 kernel 5.15.148.2-2
Microsoft cbl2 kernel 5.15.180.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.27-1
  2. Upgrade

    Upgrade redhat/Kernel to a version that resolves this vulnerability.

    Fixed in 6.7

Event History

Dec 5, 2023
Data Sourced
via Red Hat·06:06 PM
DescriptionSeverityAffected Software
Jan 21, 2024
CVE Published
via MITRE·10:01 AM
Data Sourced
via MITRE·10:01 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 30, 2024
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
DescriptionSeverity
Updated
via Microsoft·08:00 AM
Description
May 1, 2024
Data Sourced
via Launchpad·11:30 PM
Description
Sep 14, 2024
Data Sourced
via Ubuntu·11:51 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2023-6531?

CVE-2023-6531 has been assessed as a high severity vulnerability due to the potential for use-after-free errors.

2

How do I fix CVE-2023-6531?

To mitigate CVE-2023-6531, upgrade the Linux kernel to version 6.8 or later, or apply the respective patches provided by your distribution.

3

What systems are affected by CVE-2023-6531?

CVE-2023-6531 affects Linux kernel versions up to 6.7 and specific releases such as Red Hat Enterprise Linux 9.0.

4

What is the impact of CVE-2023-6531?

The impact of CVE-2023-6531 may lead to a kernel crash or unauthorized access, compromising system integrity.

5

Is CVE-2023-6531 being actively exploited?

As of the current date, there is no reported active exploitation of CVE-2023-6531, but caution is advised until patches are applied.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203