CVE-2024-47747 net: seeq: Fix use after free vulnerability in ether3 Driver Due to Race Condition

High 7.8 Published Updated

A race condition in the Linux kernel ether3 driver allows a use-after-free, potentially enabling local attackers to 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-2024-47747?

CVE-2024-47747 is a high-severity use after free vulnerability in Linux kernel, published on 21 Oct 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: seeq: Fix use after free vulnerability in ether3 Driver Due to Race Condition

In the ether3_probe function, a timer is initialized with a callback function ether3_ledoff, bound to &prev(dev)->timer. Once the timer is started, there is a risk of a race condition if the module or device is removed, triggering the ether3_remove function to perform cleanup. The sequence of operations that may lead to a UAF bug is as follows:

CPU0 CPU1

| ether3_ledoff ether3_remove | free_netdev(dev); | put_devic | kfree(dev); | | ether3_outw(priv(dev)->regs.config2 |= CFG2_CTRLO, REG_CONFIG2); | // use dev

Fix it by ensuring that the timer is canceled before proceeding with the cleanup in ether3_remove.

Weakness: CWE-416

Which versions are affected by CVE-2024-47747?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-47747?

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-2024-47747 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-50679, AZL-50689, BELL-CVE-2024-47747, DEBIAN-CVE-2024-47747, GHSA-hr73-xmqh-3gcc, ROOT-OS-DEBIAN-11-CVE-2024-47747 and 1 more.

Is CVE-2024-47747 in your software?

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

Check your SBOMs for free