vme: Fix error not catched in fake_init()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 658bcdae9c6755806e66b33e29d56b33a3ff421a · < 4bc217b25ea81034fad8e33fd33e4659f086421d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
vme: Fix error not catched in fake_init()
In fake_init(), __root_device_register() is possible to fail but it's ignored, which can cause unregistering vme_root fail when exit.
general protection fault, probably for non-canonical address 0xdffffc000000008c KASAN: null-ptr-deref in range [0x0000000000000460-0x0000000000000467] RIP: 0010:root_device_unregister+0x26/0x60 Call Trace: <TASK> __x64_sys_delete_module+0x34f/0x540 do_syscall_64+0x38/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd
Return error when __root_device_register() fails.
From the CVE record · Linux
The Linux kernel VME fake_init() function ignores a possible failure of __root_device_register(). If registration fails, later module removal can trigger a null-pointer dereference while unregistering vme_root; the input does not establish whether an attacker can trigger this or what access is required.
Engineers running Linux kernels with the VME component should check whether their kernel includes the fix; affected versions are not specified.