Vulnerability · Published May 21, 2024 · Assigned by Linux
CVE-2023-52816drm/amdkfd: Fix shift out-of-bounds issue
High 7.8
In plain English
A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 16% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Fix shift out-of-bounds issue [ 567.613292] shift exponent 255 is too large for 64-bit type 'long unsigned int' [ 567.614498] CPU: 5 PID: 238 Comm: kworker/5:1 Tainted: G OE 6.2.0-34-generic #34~22.04.1-Ubuntu [ 567.614502] Hardware name: AMD Splinter/Splinter-RPL, BIOS WS43927N_871 09/25/2023 [ 567.614504] Workqueue: events send_exception_work_handler [amdgpu] [ 567.614748] Call Trace: [ 567.614750] <TASK> [ 567.614753] dump_stack_lvl+0x48/0x70 [ 567.614761] dump_stack+0x10/0x20 [ 567.614763] __ubsan_handle_shift_out_of_bounds+0x156/0x310 [ 567.614769] ? srso_alias_return_thunk+0x5/0x7f [ 567.614773] ? update_sd_lb_stats.constprop.0+0xf2/0x3c0 [ 567.614780] svm_range_split_by_granularity.cold+0x2b/0x34 [amdgpu] [ 567.615047] ? srso_alias_return_thunk+0x5/0x7f [ 567.615052] svm_migrate_to_ram+0x185/0x4d0 [amdgpu] [ 567.615286] do_swap_page+0x7b6/0xa30 [ 567.615291] ? srso_alias_return_thunk+0x5/0x7f [ 567.615294] ? __free_pages+0x119/0x130 [ 567.615299] handle_pte_fault+0x227/0x280 [ 567.615303] __handle_mm_fault+0x3c0/0x720 [ 567.615311] handle_mm_fault+0x119/0x330 [ 567.615314] ? lock_mm_and_find_vma+0x44/0x250 [ 567.615318] do_user_addr_fault+0x1a9/0x640 [ 567.615323] exc_page_fault+0x81/0x1b0 [ 567.615328] asm_exc_page_fault+0x27/0x30 [ 567.615332] RIP: 0010:__get_user_8+0x1c/0x30
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | linux | 6.1.64-1 | DEBIAN-CVE-2023-52816 |
| Debian:13 | linux | 6.6.8-1 | DEBIAN-CVE-2023-52816 |
| Debian:14 | linux | 6.6.8-1 | DEBIAN-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux | 5.15.0-100.110 | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1056.61 | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1058.66 | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1058.66.1 | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1053.61 | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1052.57 | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1038.44 | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1048.51 | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1050.56 | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1052.57 | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-100.110 | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1046.46 | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | 6.5.0-1014.14 | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1025.25 | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1012.12 | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1053.59 | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1048.51 | UBUNTU-CVE-2023-52816 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2023-52816 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1030.34 | UBUNTU-CVE-2023-52816 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 42de677f79999791bee4e21be318c32d90ab62c6 – before 3f7a400d5e80f99581e3e8a9843e1f6118bf454f42de677f79999791bee4e21be318c32d90ab62c6 – before 2806f880379232e789957c2078d612669eb7a69c42de677f79999791bee4e21be318c32d90ab62c6 – before d33a35b13cbfec3238043f196fa87a6384f9d08742de677f79999791bee4e21be318c32d90ab62c6 – before 56649c43d40ce0147465a2d5756d300e87f9ee1c42de677f79999791bee4e21be318c32d90ab62c6 – before 282c1d793076c2edac6c3db51b7e8ed2b41d60a5 |
| Linux | Linux | 5.14 |
References
- https://git.kernel.org/stable/c/3f7a400d5e80f99581e3e8a9843e1f6118bf454f
- https://git.kernel.org/stable/c/2806f880379232e789957c2078d612669eb7a69c
- https://git.kernel.org/stable/c/d33a35b13cbfec3238043f196fa87a6384f9d087
- https://git.kernel.org/stable/c/56649c43d40ce0147465a2d5756d300e87f9ee1c
- https://git.kernel.org/stable/c/282c1d793076c2edac6c3db51b7e8ed2b41d60a5