CVE-2024-36965 remoteproc: mediatek: Make sure IPI buffer fits in L2TCM

High 7.8 Published Updated

A missing bounds check in the MediaTek remoteproc driver allows out-of-bounds memory access, potentially causing a kernel panic and 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-36965?

CVE-2024-36965 is a high-severity denial of service vulnerability in Linux kernel, published on 8 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:

remoteproc: mediatek: Make sure IPI buffer fits in L2TCM

The IPI buffer location is read from the firmware that we load to the System Companion Processor, and it's not granted that both the SRAM (L2TCM) size that is defined in the devicetree node is large enough for that, and while this is especially true for multi-core SCP, it's still useful to check on single-core variants as well.

Failing to perform this check may make this driver perform R/W operations out of the L2TCM boundary, resulting (at best) in a kernel panic.

To fix that, check that the IPI buffer fits, otherwise return a failure and refuse to boot the relevant SCP core (or the SCP at all, if this is single core).

Which versions are affected by CVE-2024-36965?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-36965?

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-36965 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-36965, DEBIAN-CVE-2024-36965, GHSA-mh75-cw6c-vrcq, UBUNTU-CVE-2024-36965.

Is CVE-2024-36965 in your software?

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

Check your SBOMs for free