本文へ移動
English version →
中 4.1

usb: gadget: fix refcount underflow in gadgetfs_bind() error path

CVE-2026-99449 SecPulse初出

影響パッケージ

パッケージ影響を受ける版 → 修正版
LinuxLinux —
LinuxKernel
2.6.12 以上 5.10.275 未満→ 5.10.275
5.11.0 以上 5.15.226 未満→ 5.15.226
5.16.0 以上 6.1.193 未満→ 6.1.193
6.2.0 以上 6.6.163 未満→ 6.6.163
6.7.0 以上 6.12.117 未満→ 6.12.117
6.13.0 以上 6.18.61 未満→ 6.18.61
6.19.0 以上 7.3.2 未満→ 7.3.2

ディストリビューション別の修正状況

各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。

原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

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

usb: gadget: fix refcount underflow in gadgetfs_bind() error path

gadgetfs_bind() calls get_dev() only on the success path, but
gadgetfs_unbind() called from the enomem error label unconditionally
calls put_dev(). When bind fails (e.g. ENOMEM), put_dev() fires
without a matching get_dev(), leaving the refcount unbalanced.

A subsequent close of the ep0 file descriptor calls dev_release() ->
put_dev() which hits zero and frees the object; then gadgetfs_kill_sb()
calls put_dev(the_device) again on the already-freed pointer, triggering
a refcount underflow and use-after-free.

Fix by calling get_dev() at the start of gadgetfs_bind(), before any
error path that invokes gadgetfs_unbind(), so the reference is always
balanced regardless of whether bind succeeds or fails.

出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

参照URL

当サイトでは、アクセス解析と広告の効果測定のためにCookieを使います。株式会社Gameのサイト共通の設定です。 詳しく