CVE-2022-48690

MEDIUM

Linux Kernel 5.16-5.19.9 - Use-After-Free in ICE Driver DMA Mapping

Title source: llm
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: ice: Fix DMA mappings leak Fix leak, when user changes ring parameters. During reallocation of RX buffers, new DMA mappings are created for those buffers. New buffers with different RX ring count should substitute older ones, but those buffers were freed in ice_vsi_cfg_rxq and reallocated again with ice_alloc_rx_buf. kfree on rx_buf caused leak of already mapped DMA. Reallocate ZC with xdp_buf struct, when BPF program loads. Reallocate back to rx_buf, when BPF program unloads. If BPF program is loaded/unloaded and XSK pools are created, reallocate RX queues accordingly in XDP_SETUP_XSK_POOL handler. Steps for reproduction: while : do for ((i=0; i<=8160; i=i+32)) do ethtool -G enp130s0f0 rx $i tx $i sleep 0.5 ethtool -g enp130s0f0 done done

Scores

CVSS v3 5.5
EPSS 0.0019
EPSS Percentile 9.1%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-401
Status published
Products (10)
linux/Kernel 5.16.0 - 5.19.9linux
Linux/Linux < 5.16
Linux/Linux 5.16
Linux/Linux 5.19.9 - 5.19.*
Linux/Linux 6.0
Linux/Linux 617f3e1b588c802517c236087561c6bcb0b4afd6 - 07f40e9f0ff342eb3e97d5c544783b7cb641689c
Linux/Linux 617f3e1b588c802517c236087561c6bcb0b4afd6 - 7e753eb675f0523207b184558638ee2eed6c9ac2
linux/linux_kernel 5.16 (3 CPE variants)
linux/linux_kernel 6.0 rc1 (4 CPE variants)
linux/linux_kernel 5.16.1 - 5.19.9
Published May 03, 2024
Tracked Since Feb 18, 2026