Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-38722— habanalabs: fix UAF in export_dmabuf()

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于habanalabs驱动在导出dmabuf时未正确处理文件描述符,可能导致释放后重用。

CVSS 7.8 · High EPSS 0.16% · P4

Possible ATT&CK Techniques 1 AI

T1203 · Exploitation for Client Execution

Affected Version Matrix 12

VendorProduct Version RangeStatus
Linux Linux db1a8dd916aac986871f6b873a3aefad906f383a< d26058c2349d77d1ef179a2cc9752ca12004b6ff affected
db1a8dd916aac986871f6b873a3aefad906f383a< c07886761fd6251db6938d4e747002e3d150d231 affected
db1a8dd916aac986871f6b873a3aefad906f383a< 40deceb38f9db759772d1c289c28fd2a543f57fc affected
db1a8dd916aac986871f6b873a3aefad906f383a< 55c232d7e0241f1d5120b595e7a9de24c75ed3d8 affected
db1a8dd916aac986871f6b873a3aefad906f383a< 33927f3d0ecdcff06326d6e4edb6166aed42811c affected
5.16 affected
< 5.16 unaffected
6.6.160≤ 6.6.* unaffected
… +4 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-38722

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
habanalabs: fix UAF in export_dmabuf()
Source: CVE Program / CVE List V5
Vulnerability 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 when everything had been set up. As a side benefit, we no longer have the failure exit with file already created, but reference to underlying file (as well as ->dmabuf_export_cnt, etc.) not grabbed yet; unlike dma_buf_fd(), fd_install() can't fail.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于habanalabs驱动在导出dmabuf时未正确处理文件描述符,可能导致释放后重用。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux db1a8dd916aac986871f6b873a3aefad906f383a ~ d26058c2349d77d1ef179a2cc9752ca12004b6ff -
Linux Linux 5.16 -

II. Public POCs for CVE-2025-38722

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-38722

请登录查看更多情报信息。

Patches & Fixes for CVE-2025-38722 (1)

Same Patch Batch · Linux · 2025-09-04 · 52 CVEs total

CVE-2025-38708 9.8 CRITICAL drbd: add missing kref_get in handle_write_conflicts
CVE-2025-38724 9.8 CRITICAL nfsd: handle get_client_locked() failure in nfsd4_setclientid_confirm()
CVE-2025-38728 9.1 CRITICAL smb3: fix for slab out of bounds on mount to ksmbd
CVE-2025-38688 8.8 HIGH iommufd: Prevent ALIGN() overflow
CVE-2025-38697 7.8 HIGH jfs: upper bound check of tree index in dbAllocAG
CVE-2025-38715 7.8 HIGH hfs: fix slab-out-of-bounds in hfs_bnode_read()
CVE-2025-38717 7.8 HIGH net: kcm: Fix race condition in kcm_unattach()
CVE-2025-38718 7.8 HIGH sctp: linearize cloned gso packets in sctp_rcv
CVE-2025-38714 7.8 HIGH hfsplus: fix slab-out-of-bounds in hfsplus_bnode_read()
CVE-2025-38685 7.8 HIGH fbdev: Fix vmalloc out-of-bounds write in fast_imageblit
CVE-2025-38710 7.8 HIGH gfs2: Validate i_depth for exhash directories
CVE-2025-38730 7.8 HIGH io_uring/net: commit partial buffers on retry
CVE-2025-38703 7.8 HIGH drm/xe: Make dma-fences compliant with the safe access rules
CVE-2025-38679 7.3 HIGH media: venus: Fix OOB read due to missing payload bound check
CVE-2025-38687 7.3 HIGH comedi: fix race between polling and detaching
CVE-2025-38713 7.1 HIGH hfsplus: fix slab-out-of-bounds read in hfsplus_uni2asc()
CVE-2025-38707 7.1 HIGH fs/ntfs3: Add sanity check for file name
CVE-2025-38680 media: uvcvideo: Fix 1-byte out-of-bounds read in uvc_parse_format()
CVE-2025-38693 media: dvb-frontends: w7090p: fix null-ptr-deref in w7090p_tuner_write_serpar and w7090p_t
CVE-2025-38681 mm/ptdump: take the memory hotplug lock inside ptdump_walk_pgd()

Showing top 20 of 52 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2025-38722

No comments yet


Leave a comment