製品・ソフトウェアに関する情報
Debian等の複数ベンダの製品における解放済みメモリの使用に関する脆弱性
Title Debian等の複数ベンダの製品における解放済みメモリの使用に関する脆弱性
Summary

Linuxカーネルのusb gadgetモジュールにおいて、composite_dev_cleanup関数に関連するuse-after-freeの脆弱性が修正されました。この問題は、configfs_composite_bind関数の内部でメモリ確保が失敗した際に、os_desc_reqポインタが解放されたにもかかわらずNULLに設定されていなかったため、後続処理で再度参照されることで発生していました。その結果、KASANによってuse-after-freeが検知されたり、カーネルパニックが発生したりする可能性がありましたが、今回の修正によって安全性が向上しています。

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

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

Publication Date Aug. 19, 2025, midnight
Registration Date Jan. 13, 2026, 2:59 p.m.
Last Update Jan. 13, 2026, 2:59 p.m.
CVSS3.0 : 重要
Score 7.8
Vector CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected System
Debian
Debian GNU/Linux 11.0
Linux
Linux Kernel 3.16 以上 5.4.297 未満
Linux Kernel 5.11 以上 5.15.190 未満
Linux Kernel 5.16 以上 6.1.148 未満
Linux Kernel 5.5 以上 5.10.241 未満
Linux Kernel 6.13 以上 6.15.10 未満
Linux Kernel 6.16 以上 6.16.1 未満
Linux Kernel 6.2 以上 6.6.102 未満
Linux Kernel 6.7 以上 6.12.42 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年01月13日]
  掲載
Jan. 13, 2026, 2:59 p.m.

NVD Vulnerability Information
CVE-2025-38555
Summary

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

usb: gadget : fix use-after-free in composite_dev_cleanup()

1. In func configfs_composite_bind() -> composite_os_desc_req_prepare():
if kmalloc fails, the pointer cdev->os_desc_req will be freed but not
set to NULL. Then it will return a failure to the upper-level function.
2. in func configfs_composite_bind() -> composite_dev_cleanup():
it will checks whether cdev->os_desc_req is NULL. If it is not NULL, it
will attempt to use it.This will lead to a use-after-free issue.

BUG: KASAN: use-after-free in composite_dev_cleanup+0xf4/0x2c0
Read of size 8 at addr 0000004827837a00 by task init/1

CPU: 10 PID: 1 Comm: init Tainted: G O 5.10.97-oh #1
kasan_report+0x188/0x1cc
__asan_load8+0xb4/0xbc
composite_dev_cleanup+0xf4/0x2c0
configfs_composite_bind+0x210/0x7ac
udc_bind_to_driver+0xb4/0x1ec
usb_gadget_probe_driver+0xec/0x21c
gadget_dev_desc_UDC_store+0x264/0x27c

Publication Date Aug. 20, 2025, 2:15 a.m.
Registration Date Aug. 20, 2025, 4 a.m.
Last Update Aug. 20, 2025, 2:15 a.m.
Related information, measures and tools
Common Vulnerabilities List