製品・ソフトウェアに関する情報
LinuxのLinux Kernelにおける解放済みメモリの使用に関する脆弱性
Title LinuxのLinux Kernelにおける解放済みメモリの使用に関する脆弱性
Summary

Linuxカーネルにおいて、以下の脆弱性が修正されました。ALSAの6fireドライバにおける切断時のuse-after-freeの問題です。usb6fire_chip_abort()内で、chip構造体はsnd_card_newにより割り当てられたカードのプライベートデータ(struct sfire_chipのサイズ)として管理されています。snd_card_free_when_closed()が呼ばれ、開かれているファイルハンドルがなくなると、カードとその内部のchipは同期的に解放されます。しかし、その後chip-card = NULLへの書き込みが解放済みのスラブメモリに対して行われてしまいます。コールトレースは以下の通りです。usb6fire_chip_abortはsound/usb/6fire/chip.cの59行目(インライン)、usb6fire_chip_disconnectは182行目、usb_unbind_interfaceはdrivers/usb/core/driver.cの458行目などにあります。修正内容は、カードのライフサイクル管理をusb6fire_chip_abort()からusb6fire_chip_disconnect()に移動することです。カードポインタをローカルに保存し、tear down前にsnd_card_disconnect()を最初に呼び出して新規のオープンを防止します。URBはchipが有効な間に中断され、最後にsnd_card_free_when_closed()を呼び出すことで、カード解放後にchipへのアクセスが発生しないようにしました。

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

リリース情報、またはパッチ情報が公開されています。参考情報を参照して適切な対策を実施してください。

Publication Date April 24, 2026, midnight
Registration Date April 30, 2026, 12:33 p.m.
Last Update April 30, 2026, 12:33 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
Linux
Linux Kernel 6.12 以上 6.12.83 未満
Linux Kernel 6.13 以上 6.18.24 未満
Linux Kernel 6.19 以上 6.19.14 未満
Linux Kernel 6.6.136 未満
Linux Kernel 7.0 以上 7.0.1 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
その他
Change Log
No Changed Details Date of change
1 [2026年04月30日]
  掲載
April 30, 2026, 12:33 p.m.

NVD Vulnerability Information
CVE-2026-31581
Summary

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

ALSA: 6fire: fix use-after-free on disconnect

In usb6fire_chip_abort(), the chip struct is allocated as the card's
private data (via snd_card_new with sizeof(struct sfire_chip)). When
snd_card_free_when_closed() is called and no file handles are open, the
card and embedded chip are freed synchronously. The subsequent
chip->card = NULL write then hits freed slab memory.

Call trace:
usb6fire_chip_abort sound/usb/6fire/chip.c:59 [inline]
usb6fire_chip_disconnect+0x348/0x358 sound/usb/6fire/chip.c:182
usb_unbind_interface+0x1a8/0x88c drivers/usb/core/driver.c:458
...
hub_event+0x1a04/0x4518 drivers/usb/core/hub.c:5953

Fix by moving the card lifecycle out of usb6fire_chip_abort() and into
usb6fire_chip_disconnect(). The card pointer is saved in a local
before any teardown, snd_card_disconnect() is called first to prevent
new opens, URBs are aborted while chip is still valid, and
snd_card_free_when_closed() is called last so chip is never accessed
after the card may be freed.

Publication Date April 25, 2026, 12:16 a.m.
Registration Date April 25, 2026, 4:07 a.m.
Last Update April 27, 2026, 11:16 p.m.
Related information, measures and tools
Common Vulnerabilities List