CVE-2023-6040 Memory corruption in linux

High 7.8 Published Updated

An out-of-bounds access in the Linux kernel netfilter subsystem allows attackers to potentially 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-6040?

CVE-2023-6040 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 12 Jan 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

An out-of-bounds access vulnerability involving netfilter was reported and fixed as: f1082dd31fe4 (netfilter: nf_tables: Reject tables of unsupported family); While creating a new netfilter table, lack of a safeguard against invalid nf_tables family (pf) values within `nf_tables_newtable` function enables an attacker to achieve out-of-bounds access.

Weakness: CWE-125

Which versions are affected by CVE-2023-6040?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2023-6040?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2023-6040 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as AZL-33549, DEBIAN-CVE-2023-6040, GHSA-cw47-8xqr-cfh2, UBUNTU-CVE-2023-6040.

Is CVE-2023-6040 in your software?

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

Check your SBOMs for free