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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-40306— orangefs: fix xattr related buffer overflow...

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存在安全漏洞,该漏洞源于xattr_key函数存在缓冲区溢出,可能导致内存损坏。

CVSS 7.8 · High EPSS 0.16% · P5

Affected Version Matrix 18

VendorProduct Version RangeStatus
Linux Linux f7ab093f74bf638ed98fd1115f3efa17e308bb7f< c6564ff6b53c9a8dc786b6f1c51ae7688273f931 affected
f7ab093f74bf638ed98fd1115f3efa17e308bb7f< ef892d2bf4f3fa2c8de1677dd307e678bdd3d865 affected
f7ab093f74bf638ed98fd1115f3efa17e308bb7f< 15afebb9597449c444801d1ff0b8d8b311f950ab affected
f7ab093f74bf638ed98fd1115f3efa17e308bb7f< bc812574de633cf9a9ad6974490e45f6a4bb5126 affected
f7ab093f74bf638ed98fd1115f3efa17e308bb7f< e09a096104fc65859422817fb2211f35855983fe affected
f7ab093f74bf638ed98fd1115f3efa17e308bb7f< 9127d1e90c90e5960c8bc72a4ce2c209691a7021 affected
f7ab093f74bf638ed98fd1115f3efa17e308bb7f< c2ca015ac109fd743fdde27933d59dc5ad46658e affected
f7ab093f74bf638ed98fd1115f3efa17e308bb7f< 025e880759c279ec64d0f754fe65bf45961da864 affected
… +10 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-40306

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
orangefs: fix xattr related buffer overflow...
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: orangefs: fix xattr related buffer overflow... Willy Tarreau <w@1wt.eu> forwarded me a message from Disclosure <disclosure@aisle.com> with the following warning: > The helper `xattr_key()` uses the pointer variable in the loop condition > rather than dereferencing it. As `key` is incremented, it remains non-NULL > (until it runs into unmapped memory), so the loop does not terminate on > valid C strings and will walk memory indefinitely, consuming CPU or hanging > the thread. I easily reproduced this with setfattr and getfattr, causing a kernel oops, hung user processes and corrupted orangefs files. Disclosure sent along a diff (not a patch) with a suggested fix, which I based this patch on. After xattr_key started working right, xfstest generic/069 exposed an xattr related memory leak that lead to OOM. xattr_key returns a hashed key. When adding xattrs to the orangefs xattr cache, orangefs used hash_add, a kernel hashing macro. hash_add also hashes the key using hash_log which resulted in additions to the xattr cache going to the wrong hash bucket. generic/069 tortures a single file and orangefs does a getattr for the xattr "security.capability" every time. Orangefs negative caches on xattrs which includes a kmalloc. Since adds to the xattr cache were going to the wrong bucket, every getattr for "security.capability" resulted in another kmalloc, none of which were ever freed. I changed the two uses of hash_add to hlist_add_head instead and the memory leak ceased and generic/069 quit throwing furniture.
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存在安全漏洞,该漏洞源于xattr_key函数存在缓冲区溢出,可能导致内存损坏。
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 f7ab093f74bf638ed98fd1115f3efa17e308bb7f ~ c6564ff6b53c9a8dc786b6f1c51ae7688273f931 -
Linux Linux 4.6 -

II. Public POCs for CVE-2025-40306

# 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-40306

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

Same Patch Batch · Linux · 2025-12-08 · 82 CVEs total

CVE-2023-53751 9.8 CRITICAL cifs: fix potential use-after-free bugs in TCP_Server_Info::hostname
CVE-2025-40320 9.8 CRITICAL smb: client: fix potential cfid UAF in smb2_query_info_compound
CVE-2023-53769 9.3 CRITICAL virt/coco/sev-guest: Double-buffer messages
CVE-2023-53764 8.8 HIGH wifi: ath12k: Handle lock during peer_id find
CVE-2023-53762 8.8 HIGH Bluetooth: hci_sync: Fix UAF in hci_disconnect_all_sync
CVE-2025-40318 8.8 HIGH Bluetooth: hci_sync: fix race in hci_cmd_sync_dequeue_once
CVE-2025-40292 8.4 HIGH virtio-net: fix received length check in big packets
CVE-2025-40309 8.0 HIGH Bluetooth: SCO: Fix UAF on sco_conn_free
CVE-2025-40302 7.8 HIGH media: videobuf2: forbid remove_bufs when legacy fileio is active
CVE-2025-40291 7.8 HIGH io_uring: fix regbuf vector size truncation
CVE-2025-40303 7.8 HIGH btrfs: ensure no dirty metadata is written back for an fs with errors
CVE-2023-53759 7.8 HIGH HID: hidraw: fix data race on device refcount
CVE-2025-40317 7.8 HIGH regmap: slimbus: fix bus_context pointer in regmap init calls
CVE-2025-40319 7.8 HIGH bpf: Sync pending IRQ work before freeing ring buffer
CVE-2025-40323 7.8 HIGH fbcon: Set fb_display[i]->mode to NULL when the mode is released
CVE-2023-53753 7.8 HIGH drm/amd/display: fix mapping to non-allocated address
CVE-2023-53752 7.8 HIGH net: deal with integer overflows in kmalloc_reserve()
CVE-2023-53747 7.8 HIGH vc_screen: reload load of struct vc_data pointer in vcs_write() to avoid UAF
CVE-2022-50623 7.8 HIGH fpga: prevent integer overflow in dfl_feature_ioctl_set_irq()
CVE-2022-50630 7.8 HIGH mm: hugetlb: fix UAF in hugetlb_handle_userfault

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

IV. Related Vulnerabilities

V. Comments for CVE-2025-40306

No comments yet


Leave a comment