CVE-2025-40352: 
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2025-40352 is a kernel warning/bug in the Linux kernel's platform/mellanox: mlxbf-pmc driver, where the sysfs_attr_init() function is not called during initialization of the count_clock data structure. This omission triggers a lockdep warning (BUG: key has not been registered) when the BlueField-3 SoC is booted with CONFIG_LOCK_STAT enabled. The vulnerability was published on December 16, 2025, and affects Linux kernel versions from commit 5efc800975d9a66cf7e7684c07d4c1928f025972 up to (but not including) the fix commits. The CVSS base score is 0.0 (no severity rating assigned), reflecting its nature as a kernel debug warning rather than a directly exploitable security flaw (Feedly, ENISA EUVD).

Technical details

The root cause is a missing call to sysfs_attr_init() in the mlxbf_pmc driver's initialization path for the count_clock sysfs attribute (CWE classification not formally assigned). When the driver registers the hardware monitor device via devm_hwmon_device_register_with_groups(), the kernel's lockdep subsystem detects that the lock key embedded in the sysfs attribute has not been properly registered, producing a DEBUG_LOCKS_WARN_ON(1) warning. The call trace shows the issue originates in mlxbf_pmc_probe() → __hwmon_device_register() → sysfs_create_groups() → lockdep_init_map_type(). The fix requires adding sysfs_attr_init() to the count_clock structure initialization before the attribute is registered with the sysfs subsystem (Feedly).

Impact

The practical impact of this vulnerability is limited to triggering a kernel warning message on systems running the BlueField-3 SoC with lock debugging (CONFIG_LOCK_STAT) enabled. There is no evidence of confidentiality, integrity, or availability impact beyond the diagnostic warning, and the issue does not enable privilege escalation, code execution, or data exposure. The affected scope is restricted to Mellanox BlueField-3 platforms running affected Linux kernel versions with debug configurations (Feedly, ENISA EUVD).

Exploitability

There is no known exploitation of CVE-2025-40352 in the wild, and no public proof-of-concept exploit exists. The EPSS score is 0.000180 (very low probability of exploitation), and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The issue is a kernel debug warning rather than an exploitable security vulnerability, making weaponization highly unlikely (Feedly).

Mitigation and workarounds

The fix is included in Linux kernel patch releases 6.17.6 and 6.18, which add the required sysfs_attr_init() call to the count_clock data structure initialization in the mlxbf_pmc driver. The relevant fix commits are 46be1f5aae82b4136f676528ff091629697c7719 and a7b4747d8e0e7871c3d4971cded1dcc9af6af9e9 in the stable kernel tree. Administrators running BlueField-3 SoC systems should update to kernel 6.17.6 or 6.18 or later; as a workaround, disabling CONFIG_LOCK_STAT in the kernel configuration will suppress the warning but is not recommended for production debug environments (Feedly, ENISA EUVD).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux

Fixed

sid

linux: 6.17.6-1

Fixed

trixie

linux

Fixed

Ubuntu

Fixed

bionic

linux

Not Affected

bionic (esm-infra)

linux

Not Affected

bionic (fips-updates)

linux-fips

Not Affected

bionic (fips)

linux-fips

Not Affected

devel

linux

Not Affected

focal

linux

Not Affected

focal (esm-infra)

linux

Not Affected

focal (fips-updates)

linux-fips

Not Affected

RHEL / CentOS

Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

Not Affected

Source: This report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-115825NONEN/A
  • Linux Debian logoLinux Debian
  • libplack-perl
NoYesOct 25, 2026
CVE-2026-115824NONEN/A
  • Linux Debian logoLinux Debian
  • starman
NoNoOct 25, 2026
CVE-2026-115823NONEN/A
  • Linux Debian logoLinux Debian
  • starman
NoNoOct 25, 2026
CVE-2026-115822NONEN/A
  • Linux Debian logoLinux Debian
  • starman
NoNoOct 25, 2026
CVE-2026-115817NONEN/A
  • Linux Debian logoLinux Debian
  • starman
NoNoOct 25, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management