| Title | LinuxのLinux Kernelにおける解放済みメモリの使用に関する脆弱性 |
|---|---|
| Summary | 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)を挿入し、再現性を高める手法が用いられています。 |
| Possible impacts | ・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアが完全に停止する可能性があります。 |
| Solution | リリース情報、またはパッチ情報が公開されています。参考情報を参照して適切な対策を実施してください。 |
| Publication Date | May 27, 2026, midnight |
| Registration Date | June 26, 2026, noon |
| Last Update | June 26, 2026, noon |
| 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 |
| 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 | Changed Details | Date of change |
|---|---|---|
| 1 | [2026年06月26日] 掲載 |
June 26, 2026, noon |
| Summary | 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: |
|---|---|
| Publication Date | May 27, 2026, 11:16 p.m. |
| Registration Date | May 28, 2026, 4:11 a.m. |
| Last Update | May 27, 2026, 11:48 p.m. |