CVE-2024-36974 net/sched: taprio: always validate TCA_TAPRIO_ATTR_PRIOMAP

High 7.8 Published Updated

A missing validation in the Linux kernel taprio scheduler allows local attackers to inject arbitrary data, potentially leading to code execution or privilege escalation.

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-2024-36974?

CVE-2024-36974 is a high-severity missing authorization vulnerability in Linux kernel, published on 18 Jun 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

net/sched: taprio: always validate TCA_TAPRIO_ATTR_PRIOMAP

If one TCA_TAPRIO_ATTR_PRIOMAP attribute has been provided, taprio_parse_mqprio_opt() must validate it, or userspace can inject arbitrary data to the kernel, the second time taprio_change() is called.

First call (with valid attributes) sets dev->num_tc to a non zero value.

Second call (with arbitrary mqprio attributes) returns early from taprio_parse_mqprio_opt() and bad things can happen.

Which versions are affected by CVE-2024-36974?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-36974?

Apply the vendor's patch.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2024-36974 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-36974, DEBIAN-CVE-2024-36974, GHSA-rx99-hq7r-6g3r, UBUNTU-CVE-2024-36974.

Is CVE-2024-36974 in your software?

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

Check your SBOMs for free