CVE-2021-47526 serial: liteuart: Fix NULL pointer dereference in ->remove()

Medium 5.5 Published Updated

A NULL pointer dereference in the liteuart serial driver's remove function can cause a kernel crash, leading to denial of service.

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-2021-47526?

CVE-2021-47526 is a medium-severity vulnerability in Linux kernel, published on 24 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:

serial: liteuart: Fix NULL pointer dereference in ->remove()

drvdata has to be set in _probe() - otherwise platform_get_drvdata() causes null pointer dereference BUG in _remove().

Weakness: CWE-476

Which versions are affected by CVE-2021-47526?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47526?

Apply the vendor's patch.

Is CVE-2021-47526 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-47526, UBUNTU-CVE-2021-47526.

Is CVE-2021-47526 in your software?

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

Check your SBOMs for free