CVE-2023-1281 UAF in Linux kernel's tcindex (traffic control index filter) implementation

High 7.8 Published Updated

A local attacker can exploit a use-after-free in the Linux kernel's tcindex filter to escalate privileges to root.

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-1281?

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

Official description

Use After Free vulnerability in Linux kernel traffic control index filter (tcindex) allows Privilege Escalation. The imperfect hash area can be updated while packets are traversing, which will cause a use-after-free when 'tcf_exts_exec()' is called with the destroyed tcf_ext. A local attacker user can use this vulnerability to elevate its privileges to root.

This issue affects Linux Kernel: from 4.14 before git commit ee059170b1f7e94e55fa6cadee544e176a6e59c2.

Weakness: CWE-416

Which versions are affected by CVE-2023-1281?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-1281?

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

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

Public exploit code: 1 proofs of concept on GitHub.

All Linux kernel vulnerabilities

Sources

Also known as AZL-25690, DEBIAN-CVE-2023-1281, GHSA-r66m-27p7-w8fm, UBUNTU-CVE-2023-1281.

Is CVE-2023-1281 in your software?

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

Check your SBOMs for free