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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2025-40346— arch_topology: Fix incorrect error check in topology_parse_cpu_capacity()

AI Predicted 5.5 Difficulty: Moderate EPSS 0.20% · P10

Affected Version Matrix 16

VendorProductVersion RangeStatus
LinuxLinuxb8fe128dad8f97cc9af7c55a264d1fc5ab677195< 64da320252e43456cc9ec3055ff567f168467b37affected
b8fe128dad8f97cc9af7c55a264d1fc5ab677195< 02fbea0864fd4a863671f5d418129258d7159f68affected
b8fe128dad8f97cc9af7c55a264d1fc5ab677195< a77f8434954cb1e9c42c3854e40855fdcf5ab235affected
b8fe128dad8f97cc9af7c55a264d1fc5ab677195< 3373f263bb647fcc3b5237cfaef757633b9ee25eaffected
b8fe128dad8f97cc9af7c55a264d1fc5ab677195< 45379303124487db3a81219af7565d41f498167faffected
b8fe128dad8f97cc9af7c55a264d1fc5ab677195< 3a01b2614e84361aa222f67bc628593987e5cdb2affected
b8fe128dad8f97cc9af7c55a264d1fc5ab677195< 2eead19334516c8e9927c11b448fbe512b1f18a1affected
5.7affected
… +8 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2025-40346

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
arch_topology: Fix incorrect error check in topology_parse_cpu_capacity()
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: arch_topology: Fix incorrect error check in topology_parse_cpu_capacity() Fix incorrect use of PTR_ERR_OR_ZERO() in topology_parse_cpu_capacity() which causes the code to proceed with NULL clock pointers. The current logic uses !PTR_ERR_OR_ZERO(cpu_clk) which evaluates to true for both valid pointers and NULL, leading to potential NULL pointer dereference in clk_get_rate(). Per include/linux/err.h documentation, PTR_ERR_OR_ZERO(ptr) returns: "The error code within @ptr if it is an error pointer; 0 otherwise." This means PTR_ERR_OR_ZERO() returns 0 for both valid pointers AND NULL pointers. Therefore !PTR_ERR_OR_ZERO(cpu_clk) evaluates to true (proceed) when cpu_clk is either valid or NULL, causing clk_get_rate(NULL) to be called when of_clk_get() returns NULL. Replace with !IS_ERR_OR_NULL(cpu_clk) which only proceeds for valid pointers, preventing potential NULL pointer dereference in clk_get_rate().
Source: CVE Program / CVE List V5
CVSS Information
N/A
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存在安全漏洞,该漏洞源于未正确处理topology_parse_cpu_capacity返回值,可能导致空指针取消引用。
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

VendorProductAffected VersionsCPESubscribe
LinuxLinux b8fe128dad8f97cc9af7c55a264d1fc5ab677195 ~ 64da320252e43456cc9ec3055ff567f168467b37 -
LinuxLinux 5.7 -

II. Public POCs for CVE-2025-40346

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-40346

登录查看更多情报信息。

Other References for CVE-2025-40346 (7)

Same Patch Batch · Linux · 2025-12-16 · 157 CVEs total

CVE-2025-403509.8 CRITICALnet/mlx5e: RX, Fix generating skb from non-linear xdp_buff for striding RQ
CVE-2025-682639.8 CRITICALksmbd: ipc: fix use-after-free in ipc_msg_send_request
CVE-2025-683019.8 CRITICALnet: atlantic: fix fragment overflow handling in RX path
CVE-2025-681929.8 CRITICALnet: usb: qmi_wwan: initialize MAC header offset in qmimux_rx_fixup
CVE-2025-682859.8 CRITICALlibceph: fix potential use-after-free in have_mon_and_osd_map()
CVE-2025-682849.8 CRITICALlibceph: prevent potential out-of-bounds writes in handle_auth_session_key()
CVE-2025-683159.8 CRITICALf2fs: fix to detect potential corrupted nid in free_nid_list
CVE-2025-682268.8 HIGHsmb: client: fix incomplete backport in cfids_invalidation_worker()
CVE-2025-683048.8 HIGHBluetooth: hci_core: lookup hci_conn on RX path on protocol side
CVE-2025-682568.8 HIGHstaging: rtl8723bs: fix out-of-bounds read in rtw_get_ie() parser
CVE-2025-403628.8 HIGHceph: fix multifs mds auth caps issue
CVE-2025-682558.8 HIGHstaging: rtl8723bs: fix stack buffer overflow in OnAssocReq IE parsing
CVE-2025-683148.8 HIGHdrm/msm: make sure last_fence is always updated
CVE-2025-682508.2 HIGHhung_task: fix warnings caused by unaligned lock pointers
CVE-2025-682657.8 HIGHnvme: fix admin request_queue lifetime
CVE-2025-682127.8 HIGHfs: Fix uninitialized 'offp' in statmount_string()
CVE-2025-681797.8 HIGHs390: Disable ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP
CVE-2025-681817.8 HIGHdrm/radeon: Remove calls to drm_put_dev()
CVE-2025-681837.8 HIGHima: don't clear IMA_DIGSIG flag when setting or removing non-IMA xattr
CVE-2025-682947.8 HIGHio_uring/net: ensure vectored buffer node import is tied to notification

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

IV. Related Vulnerabilities

V. Comments for CVE-2025-40346

No comments yet


Leave a comment