製品・ソフトウェアに関する情報
Linuxカーネルdevlinkリソース解放処理における参照カウント不整合によるメモリリークの脆弱性
Title Linuxカーネルdevlinkリソース解放処理における参照カウント不整合によるメモリリークの脆弱性
Summary

Linuxカーネルでは、devlinkの削除と同期させてof_changeset_destroy()を処理することで、非同期的な削除手順による参照カウントの不一致やメモリリーク警告を防ぐ対策が導入されました。その結果、devlinkの削除とOFノードの破棄が正常な順序で行われ、誤った参照カウント警告が発生しなくなります。

Possible impacts 当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 また、当該ソフトウェアが扱う情報について、書き換えは発生しません。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date May 19, 2024, midnight
Registration Date Dec. 25, 2025, 5 p.m.
Last Update Dec. 25, 2025, 5 p.m.
CVSS3.0 : 警告
Score 5.5
Vector CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected System
Debian
Debian GNU/Linux 10.0
Linux
Linux Kernel 5.10.42 から 5.10.215 未満
Linux Kernel 5.12.9 から 5.13 未満
Linux Kernel 5.13
Linux Kernel 5.13.1 から 5.15.154 未満
Linux Kernel 5.16 から 6.1.85 未満
Linux Kernel 6.2 から 6.6.26 未満
Linux Kernel 6.7 から 6.8.5 未満
Linux Kernel 6.9
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2025年12月25日]
  掲載
Dec. 25, 2025, 5 p.m.

NVD Vulnerability Information
CVE-2024-35879
Summary

In the Linux kernel, the following vulnerability has been resolved:

of: dynamic: Synchronize of_changeset_destroy() with the devlink removals

In the following sequence:
1) of_platform_depopulate()
2) of_overlay_remove()

During the step 1, devices are destroyed and devlinks are removed.
During the step 2, OF nodes are destroyed but
__of_changeset_entry_destroy() can raise warnings related to missing
of_node_put():
ERROR: memory leak, expected refcount 1 instead of 2 ...

Indeed, during the devlink removals performed at step 1, the removal
itself releasing the device (and the attached of_node) is done by a job
queued in a workqueue and so, it is done asynchronously with respect to
function calls.
When the warning is present, of_node_put() will be called but wrongly
too late from the workqueue job.

In order to be sure that any ongoing devlink removals are done before
the of_node destruction, synchronize the of_changeset_destroy() with the
devlink removals.

Publication Date May 19, 2024, 6:15 p.m.
Registration Date May 19, 2024, 8 p.m.
Last Update Nov. 21, 2024, 6:21 p.m.
Related information, measures and tools
Common Vulnerabilities List