| タイトル | LinuxのLinux Kernelにおける解放済みメモリの使用に関する脆弱性 |
|---|---|
| 概要 | Linuxカーネルのserial: caifモジュールにおいて、ldisc_close()関数内でのuse-after-free脆弱性が修正されました。この脆弱性は、caif_serialのhandle_tx()関数がttyが解放された後にser-ttyにアクセスしてしまうことで発生し、ldisc_close()とパケット送信の間の競合状態が原因です。原因はldisc_close()の中でtty_kref_put()が呼ばれ、ネットワークデバイスがまだアクティブな状態にあるため、serとttyのライフサイクルが一致していなかったことにあります。この問題を解決するため、ttyの参照解放処理をunregister_netdevice()の後に移動し、ネットワークデバイスが存在する限りttyの参照を保持するように変更しました。こうしてuse-after-freeを防止しています。なお、再現方法としてldisc_close()の先頭にmdelay(500)を挿入し、再現性を高める手法が用いられています。 |
| 想定される影響 | ・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアが完全に停止する可能性があります。 |
| 対策 | リリース情報、またはパッチ情報が公開されています。参考情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年5月27日0:00 |
| 登録日 | 2026年6月26日12:00 |
| 最終更新日 | 2026年6月26日12:00 |
| CVSS3.0 : 重要 | |
| スコア | 7.8 |
|---|---|
| ベクター | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Linux |
| Linux Kernel 3.11 以上 5.10.252 未満 |
| Linux Kernel 5.11 以上 5.15.202 未満 |
| Linux Kernel 5.16 以上 6.1.165 未満 |
| Linux Kernel 6.13 以上 6.18.14 未満 |
| Linux Kernel 6.19 以上 6.19.4 未満 |
| Linux Kernel 6.2 以上 6.6.128 未満 |
| Linux Kernel 6.7 以上 6.12.75 未満 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年06月26日] 掲載 |
2026年6月26日12:00 |
| 概要 | In the Linux kernel, the following vulnerability has been resolved: serial: caif: fix use-after-free in caif_serial ldisc_close() There is a use-after-free bug in caif_serial where handle_tx() may The race condition occurs between ldisc_close() and packet transmission: CPU 0 (close) CPU 1 (xmit) The root cause is that tty_kref_put() is called in ldisc_close() while Since ser and tty have a 1:1 binding relationship with consistent Fix this by moving tty_kref_put() from ldisc_close() to ser_release(), Note: We save ser->tty before unregister_netdevice() because ser is How to reproduce: Add mdelay(500) at the beginning of ldisc_close() Note: There is a separate deadloop issue in handle_tx() when using KASAN report: ================================================================== Call Trace: Allocated by task 9930: Freed by task 64: Last potentially related work creation: The buggy address belongs to the object at ffff8881131e1000 The buggy address belongs to the physical page: Memory state around the buggy address: |
|---|---|
| 公表日 | 2026年5月27日23:16 |
| 登録日 | 2026年5月28日4:11 |
| 最終更新日 | 2026年5月27日23:48 |