CVE-2024-26963 usb: dwc3-am62: fix module unload/reload behavior

Medium 5.5 Published Updated

A flaw in the Linux kernel's dwc3-am62 USB driver causes a warning and potential instability during module unload/reload, requiring a patch to fix runtime power management handling.

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

CVE-2024-26963 is a medium-severity denial of service vulnerability in Linux kernel, published on 1 May 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:

usb: dwc3-am62: fix module unload/reload behavior

As runtime PM is enabled, the module can be runtime suspended when .remove() is called.

Do a pm_runtime_get_sync() to make sure module is active before doing any register operations.

Doing a pm_runtime_put_sync() should disable the refclk so no need to disable it again.

Fixes the below warning at module removel.

[ 39.705310] ------------[ cut here ]------------ [ 39.710004] clk:162:3 already disabled [ 39.713941] WARNING: CPU: 0 PID: 921 at drivers/clk/clk.c:1090 clk_core_disable+0xb0/0xb8

We called of_platform_populate() in .probe() so call the cleanup function of_platform_depopulate() in .remove(). Get rid of the now unnnecessary dwc3_ti_remove_core(). Without this, module re-load doesn't work properly.

Which versions are affected by CVE-2024-26963?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-26963?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-26963 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-26963, DEBIAN-CVE-2024-26963, GHSA-pp84-cm99-pp2q, UBUNTU-CVE-2024-26963.

Is CVE-2024-26963 in your software?

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

Check your SBOMs for free