CVE-2023-52849 in Linux情報

要約

〜によって VulDB • 2026年05月22日

Linuxカーネルにおいて、以下の脆弱性が修正されました。

cxl/mem: シャットダウン順序の修正

Ira氏より、cxl_mock_memを削除すると、以下のトレースを含むクラッシュが発生することが報告されました。

BUG: kernel NULL pointer dereference, address: 0000000000000044 [..]
RIP: 0010:cxl_region_decode_reset+0x7f/0x180 [cxl_core]
[..]
Call Trace: cxl_region_detach+0xe8/0x210 [cxl_core]
cxl_decoder_kill_region+0x27/0x40 [cxl_core]
cxld_unregister+0x29/0x40 [cxl_core]
devres_release_all+0xb8/0x110 device_unbind_cleanup+0xe/0x70 device_release_driver_internal+0x1d2/0x210 bus_remove_device+0xd7/0x150 device_del+0x155/0x3e0 device_unregister+0x13/0x60 devm_release_action+0x4d/0x90 ? __pfx_unregister_port+0x10/0x10 [cxl_core]
delete_endpoint+0x121/0x130 [cxl_core]
devres_release_all+0xb8/0x110 device_unbind_cleanup+0xe/0x70 device_release_driver_internal+0x1d2/0x210 bus_remove_device+0xd7/0x150 device_del+0x155/0x3e0 ? lock_release+0x142/0x290 cdev_device_del+0x15/0x50 cxl_memdev_unregister+0x54/0x70 [cxl_core]

このクラッシュは、サブシステムが処理を完了する前にcxl_memdevのドライバコンテキスト(@cxlds)がクリアされることに起因します。これは最終的に、このmemdevが所属するリージョン(複数可)が解体され、@cxldsを逆参照できることを期待していることに起因します。例えば以下のようなケースです。

static int cxl_region_decode_reset(struct cxl_region *cxlr, int count) ... if (cxlds->rcd) goto endpoint_reset; ...

memdevデバイスの_unregister処理、および関連する依存関係のスタック全体が巻き戻されるまで、ドライバコンテキストを有効な状態に保つことでこれを修正します。

If you want to get best quality of vulnerability data, you may have to visit VulDB.

予約する

2024年05月21日

モデレーション

承諾済み

エントリ

VDB-265635

EPSS

0.00236

アクティビティ

非常低い

ソース

Want to know what is going to be exploited?

We predict KEV entries!