CVE-2023-4206 Use-after-free in Linux kernel's net/sched: cls_route component

High 7.8 Published Updated

A use-after-free in the Linux kernel's cls_route 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-4206?

CVE-2023-4206 is a high-severity use after free vulnerability in Debian Debian 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 net/sched: cls_route component can be exploited to achieve local privilege escalation.

When route4_change() is called on an existing filter, the whole tcf_result struct is always copied into the new instance of the filter. This causes a problem when updating a filter bound to a class, as tcf_unbind_filter() is always called on the old instance in the success path, decreasing filter_cnt of the still referenced class and allowing it to be deleted, leading to a use-after-free.

We recommend upgrading past commit b80b829e9e2c1b3f7aae34855e04d8f6ecaf13c8.

Weakness: CWE-416

Which versions are affected by CVE-2023-4206?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2023-4206?

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

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

All Debian Debian Linux vulnerabilities

Sources

Also known as AZL-28674, CVE-2023-4128, DEBIAN-CVE-2023-4206, GHSA-r8pm-459q-x6hw, UBUNTU-CVE-2023-4206.

Is CVE-2023-4206 in your software?

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

Check your SBOMs for free