CVE-2023-52754 media: imon: fix access to invalid resource for the second interface

Medium 5.5 Published Updated

A memory corruption vulnerability in the Linux kernel imon driver allows attackers to cause crashes or potentially execute code via malformed USB descriptors.

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

CVE-2023-52754 is a medium-severity memory corruption vulnerability in Linux kernel, published on 21 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:

media: imon: fix access to invalid resource for the second interface

imon driver probes two USB interfaces, and at the probe of the second interface, the driver assumes blindly that the first interface got bound with the same imon driver. It's usually true, but it's still possible that the first interface is bound with another driver via a malformed descriptor. Then it may lead to a memory corruption, as spotted by syzkaller; imon driver accesses the data from drvdata as struct imon_context object although it's a completely different one that was assigned by another driver.

This patch adds a sanity check -- whether the first interface is really bound with the imon driver or not -- for avoiding the problem above at the probe time.

Weakness: CWE-401

Which versions are affected by CVE-2023-52754?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-52754?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2023-52754 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-52754, DEBIAN-CVE-2023-52754, GHSA-2qm9-92xg-cr8h, UBUNTU-CVE-2023-52754.

Is CVE-2023-52754 in your software?

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

Check your SBOMs for free