製品・ソフトウェアに関する情報
不正なアクセスを許す登録処理に起因する脆弱性
Title 不正なアクセスを許す登録処理に起因する脆弱性
Summary

LinuxカーネルのKVM SVMには、svm_register_enc_region()におけるUse-After-Freeの脆弱性が存在していました。これは、kvm->lockの下でページをフラッシュする際に、regionやそのページ配列が他のタスクによって解放される可能性があるという問題でしたが、本脆弱性は修正されました。

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

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

Publication Date May 17, 2024, midnight
Registration Date Dec. 25, 2025, 5:01 p.m.
Last Update Dec. 25, 2025, 5:01 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 10.0
Linux
Linux Kernel 4.19.176 から 4.20 未満
Linux Kernel 5.10.15 から 5.10.215 未満
Linux Kernel 5.11
Linux Kernel 5.11.1 から 5.15.154 未満
Linux Kernel 5.16 から 6.1.84 未満
Linux Kernel 5.4.98 から 5.5 未満
Linux Kernel 6.2 から 6.6.24 未満
Linux Kernel 6.7 から 6.7.12 未満
Linux Kernel 6.8
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2025年12月25日]
  掲載
Dec. 25, 2025, 5:01 p.m.

NVD Vulnerability Information
CVE-2024-35791
Summary

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

KVM: SVM: Flush pages under kvm->lock to fix UAF in svm_register_enc_region()

Do the cache flush of converted pages in svm_register_enc_region() before
dropping kvm->lock to fix use-after-free issues where region and/or its
array of pages could be freed by a different task, e.g. if userspace has
__unregister_enc_region_locked() already queued up for the region.

Note, the "obvious" alternative of using local variables doesn't fully
resolve the bug, as region->pages is also dynamically allocated. I.e. the
region structure itself would be fine, but region->pages could be freed.

Flushing multiple pages under kvm->lock is unfortunate, but the entire
flow is a rare slow path, and the manual flush is only needed on CPUs that
lack coherency for encrypted memory.

Publication Date May 17, 2024, 10:15 p.m.
Registration Date May 18, 2024, 10:01 a.m.
Last Update Nov. 21, 2024, 6:20 p.m.
Related information, measures and tools
Common Vulnerabilities List