Vulnerability in linux
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as DEBIAN-CVE-2025-40251 has been found in linux.
Attackers can target a specific entry point like rate_leaf_parent_set over the network to misuse the product.
Risk of unauthorized operations or information disclosure.
What to do: upgrade linux to 6.1.164-1 or later.
If unsure, ask your IT team or search "linux DEBIAN-CVE-2025-40251" on the vendor's site.
DEBIAN-CVE-2025-40251 (linux)
Attack surface: rate_leaf_parent_set / rate_node_parent_set / devlink_rate / devlink_nl_rate_parent_node_set
Patched: 6.1.164-1 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (unclassified) exists in linux. Attackers reach the vulnerable code path via rate_leaf_parent_set.
Check the vendor advisory for the affected versions of linux. Attack surface: rate_leaf_parent_set / rate_node_parent_set / devlink_rate / devlink_nl_rate_parent_node_set.
Severity: ?. Risk of unauthorized operations or information disclosure.
Update to 6.1.164-1.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'linux' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'linux' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
linuxを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade linux to 6.1.164-1ステージング環境で 6.1.164-1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Debian:12linux |
< 6.1.164-1→ 6.1.164-1 |
6.1.164-1 |
| Debian:13linux |
< 6.12.63-1→ 6.12.63-1 |
6.12.63-1 |
| Debian:14linux |
< 6.17.10-1→ 6.17.10-1 |
6.17.10-1 |
| Debian:11linux-6.1 |
< 6.1.164-1~deb11u1→ 6.1.164-1~deb11u1 |
6.1.164-1~deb11u1 |
Original description The description as published by the source.
In the Linux kernel, the following vulnerability has been resolved: devlink: rate: Unset parent pointer in devl_rate_nodes_destroy The function devl_rate_nodes_destroy is documented to "Unset parent for all rate objects". However, it was only calling the driver-specific rate_leaf_parent_set or rate_node_parent_set ops and decrementing the parent's refcount, without actually setting the devlink_rate->parent pointer to NULL. This leaves a dangling pointer in the devlink_rate struct, which cause refcount error in netdevsim[1] and mlx5[2]. In addition, this is inconsistent with the behavior of devlink_nl_rate_parent_node_set, where the parent pointer is correctly cleared. This patch fixes the issue by explicitly setting devlink_rate->parent to NULL after notifying the driver, thus fulfilling the function's documented behavior for all rate objects. [1] repro steps: echo 1 > /sys/bus/netdevsim/new_device devlink dev eswitch set netdevsim/netdevsim1 mode switchdev echo 1 > /sys/bus/netdevsim/devices/netdevsim1/sriov_numvfs devlink port function rate add netdevsim/netdevsim1/test_node devlink port function rate set netdevsim/netdevsim1/128 parent test_node echo 1 > /sys/bus/netdevsim/del_device dmesg: refcount_t: decrement hit 0; leaking memory. WARNING: CPU: 8 PID: 1530 at lib/refcount.c:31 refcount_warn_saturate+0x42/0xe0 CPU: 8 UID: 0 PID: 1530 Comm: bash Not tainted 6.18.0-rc4+ #1 NONE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.16.0-0-gd23955…
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory security-tracker.debian.org