CVE-2024-42147 crypto: hisilicon/debugfs - Fix debugfs uninit process issue

High 7.8 Published Updated

A double-free vulnerability in the Linux kernel's Hisilicon crypto driver debugfs initialization can cause a system crash during device probing.

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

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

crypto: hisilicon/debugfs - Fix debugfs uninit process issue

During the zip probe process, the debugfs failure does not stop the probe. When debugfs initialization fails, jumping to the error branch will also release regs, in addition to its own rollback operation.

As a result, it may be released repeatedly during the regs uninit process. Therefore, the null check needs to be added to the regs uninit process.

Weakness: CWE-415

Which versions are affected by CVE-2024-42147?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-42147?

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

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-42147, DEBIAN-CVE-2024-42147, GHSA-g4cc-x94v-f3gm, ROOT-OS-DEBIAN-11-CVE-2024-42147, ROOT-OS-UBUNTU-2204-CVE-2024-42147, UBUNTU-CVE-2024-42147.

Is CVE-2024-42147 in your software?

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

Check your SBOMs for free