CVE-2022-49592 Information
Description
In the Linux kernel the following vulnerability has been resolved:
net: stmmac: fix dma queue left shift overflow issue
When queue number is > 4 left shift overflows due to 32 bits integer variable. Mask calculation is wrong for MTL_RXQ_DMA_MAP1.
If CONFIG_UBSAN is enabled kernel dumps below warning:
[ 10.363842] ==================================================================
[ 10.363882] UBSAN: shift-out-of-bounds in /build/linux-intel-iotg-5.15-8e6Tf4/
linux-intel-iotg-5.15-5.15.0/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c:224:12
[ 10.363929] shift exponent 40 is too large for 32-bit type ‘unsigned int’
[ 10.363953] CPU: 1 PID: 599 Comm: NetworkManager Not tainted 5.15.0-1003-intel-iotg
[ 10.363956] Hardware name: ADLINK Technology Inc. LEC-EL/LEC-EL BIOS 0.15.11 12/22/2021
[ 10.363958] Call Trace:
[ 10.363960]
This change fixes MTL_RXQ_DMA_MAP1 mask issue and channel/queue mapping warning.
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=216195
Reference
https://git.kernel.org/stable/c/508d86ead36cbd8dfb60773a33276790d668c473 https://git.kernel.org/stable/c/573768dede0e2b7de38ecbc11cb3ee47643902dc https://git.kernel.org/stable/c/613b065ca32e90209024ec4a6bb5ca887ee70980 https://git.kernel.org/stable/c/7c687a893f5cae5ca40d189635602e93af9bab73 https://git.kernel.org/stable/c/a3ac79f38d354b10925824899cdbd2caadce55ba https://git.kernel.org/stable/c/ad2febdfbd01e1d092a08bfdba92ede79ea05ff3 https://git.kernel.org/stable/c/e846bde09677fa3b203057846620b7ed96540f5f
Share on: