LinuxのLinux Kernelにおける不特定の脆弱性
タイトル LinuxのLinux Kernelにおける不特定の脆弱性
概要

Linuxカーネルにおいて、以下の脆弱性が修正されました。ext4のext4_mb_release()関数で、常にキューに入ったdiscard作業を排出する問題です。最近のext4パッチ[1]のレビュー中に、Sashikoは以下の懸念を示しました[2]。最初にdiscardオプション付きでファイルシステムがマウントされた場合、ファイル削除はsbi-s_discard_listを更新し、s_discard_workをキューに入れます。その後、nodiscardオプションで再マウントすると、EXT4_MOUNT_DISCARDフラグはクリアされますが、保留中のs_discard_workはキャンセルも排出もされません。[1] https://lore.kernel.org/r/20260319094545.19291-1-qiang.zhang@linux.dev/ [2] https://sashiko.dev/#/patchset/20260319094545.19291-1-qiang.zhang%40linux.dev この懸念は妥当でしたが、パッチ[1]自体には関係ありませんでした。Sashikoの現状(初期)形態の問題の一つは、既存の問題を検出し、それをレビュー中のパッチの問題として報告してしまう点にあります。実際には、意図的に再現するのは難しいです(悪意あるsyzkallerファザーでない限り)。なぜなら、-o discard付きでファイルシステムをマウントして大量のファイルを削除し、その後-o nodiscardで再マウントし、キューに入ったdiscard作業が自身で排出される前にファイルシステムをすぐにアンマウントしなければならないからです。これは実際のバグであるため修正され、将来mballoc.cのパッチ解析時にSashikoがこの懸念を再度指摘することを回避します。

想定される影響 ・当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 ・当該ソフトウェアが扱う情報について、書き換えは発生しません。 ・当該ソフトウェアが完全に停止する可能性があります。 
対策

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

公表日 2026年5月5日0:00
登録日 2026年6月3日17:01
最終更新日 2026年6月3日17:01
CVSS3.0 : 警告
スコア 5.5
ベクター CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
影響を受けるシステム
Linux
Linux Kernel 5.15 以上 5.15.203 未満
Linux Kernel 5.16 以上 6.1.168 未満
Linux Kernel 6.13 以上 6.18.21 未満
Linux Kernel 6.19 以上 6.19.11 未満
Linux Kernel 6.2 以上 6.6.131 未満
Linux Kernel 6.7 以上 6.12.80 未満
Linux Kernel 7.0
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
その他
変更履歴
No 変更内容 変更日
1 [2026年06月03日]
  掲載
2026年6月3日17:01

NVD脆弱性情報
CVE-2026-43065
概要

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

ext4: always drain queued discard work in ext4_mb_release()

While reviewing recent ext4 patch[1], Sashiko raised the following
concern[2]:

> If the filesystem is initially mounted with the discard option,
> deleting files will populate sbi->s_discard_list and queue
> s_discard_work. If it is then remounted with nodiscard, the
> EXT4_MOUNT_DISCARD flag is cleared, but the pending s_discard_work is
> neither cancelled nor flushed.

[1] https://lore.kernel.org/r/20260319094545.19291-1-qiang.zhang@linux.dev/
[2] https://sashiko.dev/#/patchset/20260319094545.19291-1-qiang.zhang%40linux.dev

The concern was valid, but it had nothing to do with the patch[1].
One of the problems with Sashiko in its current (early) form is that
it will detect pre-existing issues and report it as a problem with the
patch that it is reviewing.

In practice, it would be hard to hit deliberately (unless you are a
malicious syzkaller fuzzer), since it would involve mounting the file
system with -o discard, and then deleting a large number of files,
remounting the file system with -o nodiscard, and then immediately
unmounting the file system before the queued discard work has a change
to drain on its own.

Fix it because it's a real bug, and to avoid Sashiko from raising this
concern when analyzing future patches to mballoc.c.

公表日 2026年5月6日1:16
登録日 2026年5月6日4:07
最終更新日 2026年5月6日22:08
関連情報、対策とツール
共通脆弱性一覧