CVE-2022-48774 dmaengine: ptdma: Fix the error handling path in pt_core_init()

Medium 5.5 Published Updated

A resource leak and potential double-free in the Linux kernel PTDMA driver error handling path can lead to system instability or 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-2022-48774?

CVE-2022-48774 is a medium-severity vulnerability in Linux kernel, published on 16 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:

dmaengine: ptdma: Fix the error handling path in pt_core_init()

In order to free resources correctly in the error handling path of pt_core_init(), 2 goto's have to be switched. Otherwise, some resources will leak and we will try to release things that have not been allocated yet.

Also move a dev_err() to a place where it is more meaningful.

Which versions are affected by CVE-2022-48774?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-48774?

Apply the vendor's patch.

Is CVE-2022-48774 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-48774, GHSA-h7f8-97v8-xrfh, UBUNTU-CVE-2022-48774.

Is CVE-2022-48774 in your software?

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

Check your SBOMs for free