# CVE-2022-49592: net: stmmac: fix dma queue left shift overflow issue

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-02-26T02:23:24.552Z
- **Modified:** 2026-06-17T05:18:33.747Z

## Who should check

- Anyone running Linux \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< ad2febdfbd01e1d092a08bfdba92ede79ea05ff3; \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< 508d86ead36cbd8dfb60773a33276790d668c473; \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< 573768dede0e2b7de38ecbc11cb3ee47643902dc; \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< a3ac79f38d354b10925824899cdbd2caadce55ba; \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< 7c687a893f5cae5ca40d189635602e93af9bab73; \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< e846bde09677fa3b203057846620b7ed96540f5f; \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< 613b065ca32e90209024ec4a6bb5ca887ee70980
- Anyone running Linux 4.12

## 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\]  \<TASK\>
\[   10.363963\]  dump\_stack\_lvl+0x4a/0x5f
\[   10.363971\]  dump\_stack+0x10/0x12
\[   10.363974\]  ubsan\_epilogue+0x9/0x45
\[   10.363976\]  \_\_ubsan\_handle\_shift\_out\_of\_bounds.cold+0x61/0x10e
\[   10.363979\]  ? wake\_up\_klogd+0x4a/0x50
\[   10.363983\]  ? vprintk\_emit+0x8f/0x240
\[   10.363986\]  dwmac4\_map\_mtl\_dma.cold+0x42/0x91 \[stmmac\]
\[   10.364001\]  stmmac\_mtl\_configuration+0x1ce/0x7a0 \[stmmac\]
\[   10.364009\]  ? dwmac410\_dma\_init\_channel+0x70/0x70 \[stmmac\]
\[   10.364020\]  stmmac\_hw\_setup.cold+0xf/0xb14 \[stmmac\]
\[   10.364030\]  ? page\_pool\_alloc\_pages+0x4d/0x70
\[   10.364034\]  ? stmmac\_clear\_tx\_descriptors+0x6e/0xe0 \[stmmac\]
\[   10.364042\]  stmmac\_open+0x39e/0x920 \[stmmac\]
\[   10.364050\]  \_\_dev\_open+0xf0/0x1a0
\[   10.364054\]  \_\_dev\_change\_flags+0x188/0x1f0
\[   10.364057\]  dev\_change\_flags+0x26/0x60
\[   10.364059\]  do\_setlink+0x908/0xc40
\[   10.364062\]  ? do\_setlink+0xb10/0xc40
\[   10.364064\]  ? \_\_nla\_validate\_parse+0x4c/0x1a0
\[   10.364068\]  \_\_rtnl\_newlink+0x597/0xa10
\[   10.364072\]  ? \_\_nla\_reserve+0x41/0x50
\[   10.364074\]  ? \_\_kmalloc\_node\_track\_caller+0x1d0/0x4d0
\[   10.364079\]  ? pskb\_expand\_head+0x75/0x310
\[   10.364082\]  ? nla\_reserve\_64bit+0x21/0x40
\[   10.364086\]  ? skb\_free\_head+0x65/0x80
\[   10.364089\]  ? security\_sock\_rcv\_skb+0x2c/0x50
\[   10.364094\]  ? \_\_cond\_resched+0x19/0x30
\[   10.364097\]  ? kmem\_cache\_alloc\_trace+0x15a/0x420
\[   10.364100\]  rtnl\_newlink+0x49/0x70

This change fixes MTL\_RXQ\_DMA\_MAP1 mask issue and channel/queue
mapping warning.

BugLink: https://bugzilla.kernel.org/show\_bug.cgi?id=216195

## Affected and fixed versions

- Linux: \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< ad2febdfbd01e1d092a08bfdba92ede79ea05ff3; \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< 508d86ead36cbd8dfb60773a33276790d668c473; \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< 573768dede0e2b7de38ecbc11cb3ee47643902dc; \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< a3ac79f38d354b10925824899cdbd2caadce55ba; \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< 7c687a893f5cae5ca40d189635602e93af9bab73; \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< e846bde09677fa3b203057846620b7ed96540f5f; \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< 613b065ca32e90209024ec4a6bb5ca887ee70980 (cvelist)
- Linux: 4.12 (cvelist)

## Mitigation

- Upgrade Linux to 613b065ca32e90209024ec4a6bb5ca887ee70980 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49592. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49592.md
Affected: Linux >= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, < ad2febdfbd01e1d092a08bfdba92ede79ea05ff3; >= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, < 508d86ead36cbd8dfb60773a33276790d668c473; >= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, < 573768dede0e2b7de38ecbc11cb3ee47643902dc; >= d43042f4da3e1c2e4ccac3b…
Fixed in: Linux 508d86ead36cbd8dfb60773a33276790d668c473, Linux 573768dede0e2b7de38ecbc11cb3ee47643902dc, Linux 7c687a893f5cae5ca40d189635602e93af9bab73, Linux 613b065ca32e90209024ec4a6bb5ca887ee70980

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49592 being exploited?

There is no confirmed exploitation: CVE-2022-49592 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49592?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49592?

Linux \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< ad2febdfbd01e1d092a08bfdba92ede79ea05ff3; \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< 508d86ead36cbd8dfb60773a33276790d668c473; \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< 573768dede0e2b7de38ecbc11cb3ee47643902dc; \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< a3ac79f38d354b10925824899cdbd2caadce55ba; \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< 7c687a893f5cae5ca40d189635602e93af9bab73; \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< e846bde09677fa3b203057846620b7ed96540f5f; \>= d43042f4da3e1c2e4ccac3b1d9153cb0798533a4, \< 613b065ca32e90209024ec4a6bb5ca887ee70980; Linux 4.12.

### Is there a fix for CVE-2022-49592?

Yes. Fixed in Linux 508d86ead36cbd8dfb60773a33276790d668c473, Linux 573768dede0e2b7de38ecbc11cb3ee47643902dc, Linux 7c687a893f5cae5ca40d189635602e93af9bab73, Linux 613b065ca32e90209024ec4a6bb5ca887ee70980. Upgrade Linux to 613b065ca32e90209024ec4a6bb5ca887ee70980 or later.

### How do I check if I'm affected by CVE-2022-49592?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/ad2febdfbd01e1d092a08bfdba92ede79ea05ff3>
- patch: <https://git.kernel.org/stable/c/508d86ead36cbd8dfb60773a33276790d668c473>
- patch: <https://git.kernel.org/stable/c/573768dede0e2b7de38ecbc11cb3ee47643902dc>
- patch: <https://git.kernel.org/stable/c/a3ac79f38d354b10925824899cdbd2caadce55ba>
- patch: <https://git.kernel.org/stable/c/7c687a893f5cae5ca40d189635602e93af9bab73>
- patch: <https://git.kernel.org/stable/c/e846bde09677fa3b203057846620b7ed96540f5f>
- patch: <https://git.kernel.org/stable/c/613b065ca32e90209024ec4a6bb5ca887ee70980>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49592>

HTML: <https://flawdb.com/CVE-2022-49592> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49592>
