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

High 7.0 Published Updated

A race condition in the Linux kernel's unix garbage collector causes a use-after-free, potentially allowing local attackers to execute code or escalate privileges.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-6531?

CVE-2023-6531 is a high-severity use after free vulnerability in Linux kernel, published on 21 Jan 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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 unix_stream_read_generic() on the socket that the SKB is queued on.

Weakness: CWE-362

Which versions are affected by CVE-2023-6531?

It affects 2 products.

Linux distribution packages (4)
kernel-livepatch-SLE15-SP2_Update_44 SUSE:Linux Enterprise Live Patching 15 SP2All versions4-150200.2.3
kernel-livepatch-SLE15-SP2_Update_45 SUSE:Linux Enterprise Live Patching 15 SP2All versions3-150200.2.3
kernel-livepatch-SLE15-SP3_Update_40 SUSE:Linux Enterprise Live Patching 15 SP3All versions4-150300.2.3
kernel-livepatch-SLE15-SP3_Update_41 SUSE:Linux Enterprise Live Patching 15 SP3All versions3-150300.2.3

Products include Linux kernel, Redhat Enterprise Linux.

How do I fix CVE-2023-6531?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2023-6531 being exploited?

There is no known exploitation of CVE-2023-6531 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-33963, AZL-34867, BELL-CVE-2023-6531, DEBIAN-CVE-2023-6531, GHSA-xh36-8q3w-g243, SUSE-SU-2024:1033-1 and 2 more.

Is CVE-2023-6531 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free