# CVE-2025-40352: linux: In the Linux kernel, the following vulnerability has been resolved:  platform/mellanox: mlxbf-pmc: add sysfs_attr_ini...

CVE-2025-40352 is fixed in linux on 1 platform by DEBIAN-CVE-2025-40352 (version 6.17.6-1), released December 16, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2025-40352
- Priority: Routine
- CVSS: n/a
- EPSS: 0.0021
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Dec 16, 2025

## Description

In the Linux kernel, the following vulnerability has been resolved:  platform/mellanox: mlxbf-pmc: add sysfs_attr_init() to count_clock init  The lock-related debug logic (CONFIG_LOCK_STAT) in the kernel is noting the following warning when the BlueField-3 SOC is booted:    BUG: key ffff00008a3402a8 has not been registered!   ------------[ cut here ]------------   DEBUG_LOCKS_WARN_ON(1)   WARNING: CPU: 4 PID: 592 at kernel/locking/lockdep.c:4801 lockdep_init_map_type+0x1d4/0x2a0 <snip>   Call trace:    lockdep_init_map_type+0x1d4/0x2a0    __kernfs_create_file+0x84/0x140    sysfs_add_file_mode_ns+0xcc/0x1cc    internal_create_group+0x110/0x3d4    internal_create_groups.part.0+0x54/0xcc    sysfs_create_groups+0x24/0x40    device_add+0x6e8/0x93c    device_register+0x28/0x40    __hwmon_device_register+0x4b0/0x8a0    devm_hwmon_device_register_with_groups+0x7c/0xe0    mlxbf_pmc_probe+0x1e8/0x3e0 [mlxbf_pmc]    platform_probe+0x70/0x110  The mlxbf_pmc driver must call sysfs_attr_init() during the initialization of the "count_clock" data structure to avoid this warning.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | linux Debian 14 | 6.17.6-1 | [DEBIAN-CVE-2025-40352](https://patchblox.com/security/data/fix/linux/debian-cve-2025-40352.md) | Dec 16, 2025 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
