CVE-2024-38635 soundwire: cadence: fix invalid PDI offset

High 7.8 Published Updated

An out-of-bounds read in the Linux kernel soundwire driver allows attackers to potentially disclose memory or cause a system crash.

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

CVE-2024-38635 is a high-severity memory corruption vulnerability in Linux kernel, published on 21 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:

soundwire: cadence: fix invalid PDI offset

For some reason, we add an offset to the PDI, presumably to skip the PDI0 and PDI1 which are reserved for BPT.

This code is however completely wrong and leads to an out-of-bounds access. We were just lucky so far since we used only a couple of PDIs and remained within the PDI array bounds.

A Fixes: tag is not provided since there are no known platforms where the out-of-bounds would be accessed, and the initial code had problems as well.

A follow-up patch completely removes this useless offset.

Weakness: CWE-125

Which versions are affected by CVE-2024-38635?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-38635?

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

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-87128, BELL-CVE-2024-38635, DEBIAN-CVE-2024-38635, GHSA-fgg4-8h2g-hcc2, UBUNTU-CVE-2024-38635.

Is CVE-2024-38635 in your software?

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

Check your SBOMs for free