CVE-2023-3777 Use-after-free in Linux kernel's netfilter: nf_tables component

High 7.8 Published Updated

A use-after-free in the Linux kernel netfilter component allows local attackers to 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-3777?

CVE-2023-3777 is a high-severity use after free vulnerability in Canonical Ubuntu Linux, published on 6 Sep 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A use-after-free vulnerability in the Linux kernel's netfilter: nf_tables component can be exploited to achieve local privilege escalation.

When nf_tables_delrule() is flushing table rules, it is not checked whether the chain is bound and the chain's owner rule can also release the objects in certain circumstances.

We recommend upgrading past commit 6eaf41e87a223ae6f8e7a28d6e78384ad7e407f8.

Weakness: CWE-416

Which versions are affected by CVE-2023-3777?

It affects 3 products.

Linux distribution packages (1)
kernel-livepatch-SLE15-SP5-RT_Update_7 SUSE:Linux Enterprise Live Patching 15 SP5All versions2-150500.2.1

Products include Canonical Ubuntu Linux, Debian Debian Linux, Linux kernel.

How do I fix CVE-2023-3777?

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-3777 being exploited?

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2023-3777, GHSA-3v7f-rjgx-9grq, SUSE-SU-2023:4781-1, UBUNTU-CVE-2023-3777.

Is CVE-2023-3777 in your software?

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

Check your SBOMs for free