Linuxカーネルdevlinkリソース解放処理における参照カウント不整合によるメモリリークの脆弱性
タイトル Linuxカーネルdevlinkリソース解放処理における参照カウント不整合によるメモリリークの脆弱性
概要

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

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

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

公表日 2024年5月19日0:00
登録日 2025年12月25日17:00
最終更新日 2025年12月25日17:00
CVSS3.0 : 警告
スコア 5.5
ベクター CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
影響を受けるシステム
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 (共通脆弱性タイプ一覧)
ベンダー情報
その他
変更履歴
No 変更内容 変更日
1 [2025年12月25日]
  掲載
2025年12月25日17:00

NVD脆弱性情報
CVE-2024-35879
概要

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.

公表日 2024年5月19日18:15
登録日 2024年5月19日20:00
最終更新日 2024年11月21日18:21
関連情報、対策とツール
共通脆弱性一覧