Menu

Star on GitHub · 3.2k

CVE-2025-38722

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: habanalabs: fix UAF in export_dmabuf() As soon as we'd inserted a file reference into descriptor table, another thread could cl…

Published Sep 4, 2025CWE-416EPSS 0.16%

Overview

CVE-2025-38722 is a high-severity vulnerability. It was published on September 4, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

habanalabs: fix UAF in export_dmabuf()

As soon as we'd inserted a file reference into descriptor table, another

thread could close it. That's fine for the case when all we are doing is

returning that descriptor to userland (it's a race, but it's a userland

race and there's nothing the kernel can do about it). However, if we

follow fd_install() with any kind of access to objects that would be

destroyed on close (be it the struct file itself or anything destroyed

by its ->release()), we have a UAF.

dma_buf_fd() is a combination of reserving a descriptor and fd_install().

habanalabs export_dmabuf() calls it and then proceeds to access the

objects destroyed on close. In particular, it grabs an extra reference to

another struct file that will be dropped as part of ->release() for ours;

that "will be" is actually "might have already been".

Fix that by reserving descriptor before anything else and do fd_install()

only

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2025-38722?

CVE-2025-38722 is a high-severity vulnerability. It was published on September 4, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2025-38722?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2025-38722?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-38722?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-38722 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2025

View all