# CVE-2022-48652: ice: Fix crash by keep old cfg when update TCs more than queues

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

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; 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.40% (percentile 26, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-04-28T13:00:47.842Z
- **Modified:** 2026-08-05T08:51:37.429Z

## Who should check

- Anyone running Linux \>= a632b2a4c920ce5af29410fb091f7ee6d2e77dc6, \< 7c945e5b4787db47d728120b56c934ba05f99864; \>= a632b2a4c920ce5af29410fb091f7ee6d2e77dc6, \< a509702cac95a8b450228a037c8542f57e538e5b; 4520c4bf4dca7aa285f30cb1ca8c08c531bbf0e9; \>= 5.18.8, \< 5.19
- Anyone running Linux 5.19

## Description

In the Linux kernel, the following vulnerability has been resolved:

ice: Fix crash by keep old cfg when update TCs more than queues

There are problems if allocated queues less than Traffic Classes.

Commit a632b2a4c920 ("ice: ethtool: Prohibit improper channel config
for DCB") already disallow setting less queues than TCs.

Another case is if we first set less queues, and later update more TCs
config due to LLDP, ice\_vsi\_cfg\_tc() will failed but left dirty
num\_txq/rxq and tc\_cfg in vsi, that will cause invalid pointer access.

\[   95.968089\] ice 0000:3b:00.1: More TCs defined than queues/rings allocated.
\[   95.968092\] ice 0000:3b:00.1: Trying to use more Rx queues (8), than were allocated (1)!
\[   95.968093\] ice 0000:3b:00.1: Failed to config TC for VSI index: 0
\[   95.969621\] general protection fault: 0000 \[\#1\] SMP NOPTI
\[   95.969705\] CPU: 1 PID: 58405 Comm: lldpad Kdump: loaded Tainted: G     U  W  O     --------- -t - 4.18.0 \#1
\[   95.969867\] Hardware name: O.E.M/BC11SPSCB10, BIOS 8.23 12/30/2021
\[   95.969992\] RIP: 0010:devm\_kmalloc+0xa/0x60
\[   95.970052\] Code: 5c ff ff ff 31 c0 5b 5d 41 5c c3 b8 f4 ff ff ff eb f4 0f 1f 40 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 89 d1 \<8b\> 97 60 02 00 00 48 8d 7e 18 48 39 f7 72 3f 55 89 ce 53 48 8b 4c
\[   95.970344\] RSP: 0018:ffffc9003f553888 EFLAGS: 00010206
\[   95.970425\] RAX: dead000000000200 RBX: ffffea003c425b00 RCX: 00000000006080c0
\[   95.970536\] RDX: 00000000006080c0 RSI: 0000000000000200 RDI: dead000000000200
\[   95.970648\] RBP: dead000000000200 R08: 00000000000463c0 R09: ffff888ffa900000
\[   95.970760\] R10: 0000000000000000 R11: 0000000000000002 R12: ffff888ff6b40100
\[   95.970870\] R13: ffff888ff6a55018 R14: 0000000000000000 R15: ffff888ff6a55460
\[   95.970981\] FS:  00007f51b7d24700(0000) GS:ffff88903ee80000(0000) knlGS:0000000000000000
\[   95.971108\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[   95.971197\] CR2: 00007fac5410d710 CR3: 0000000f2c1de002 CR4: 00000000007606e0
\[   95.971309\] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
\[   95.971419\] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
\[   95.971530\] PKRU: 55555554
\[   95.971573\] Call Trace:
\[   95.971622\]  ice\_setup\_rx\_ring+0x39/0x110 \[ice\]
\[   95.971695\]  ice\_vsi\_setup\_rx\_rings+0x54/0x90 \[ice\]
\[   95.971774\]  ice\_vsi\_open+0x25/0x120 \[ice\]
\[   95.971843\]  ice\_open\_internal+0xb8/0x1f0 \[ice\]
\[   95.971919\]  ice\_ena\_vsi+0x4f/0xd0 \[ice\]
\[   95.971987\]  ice\_dcb\_ena\_dis\_vsi.constprop.5+0x29/0x90 \[ice\]
\[   95.972082\]  ice\_pf\_dcb\_cfg+0x29a/0x380 \[ice\]
\[   95.972154\]  ice\_dcbnl\_setets+0x174/0x1b0 \[ice\]
\[   95.972220\]  dcbnl\_ieee\_set+0x89/0x230
\[   95.972279\]  ? dcbnl\_ieee\_del+0x150/0x150
\[   95.972341\]  dcb\_doit+0x124/0x1b0
\[   95.972392\]  rtnetlink\_rcv\_msg+0x243/0x2f0
\[   95.972457\]  ? dcb\_doit+0x14d/0x1b0
\[   95.972510\]  ? \_\_kmalloc\_node\_track\_caller+0x1d3/0x280
\[   95.972591\]  ? rtnl\_calcit.isra.31+0x100/0x100
\[   95.972661\]  netlink\_rcv\_skb+0xcf/0xf0
\[   95.972720\]  netlink\_unicast+0x16d/0x220
\[   95.972781\]  netlink\_sendmsg+0x2ba/0x3a0
\[   95.975891\]  sock\_sendmsg+0x4c/0x50
\[   95.979032\]  \_\_\_sys\_sendmsg+0x2e4/0x300
\[   95.982147\]  ? kmem\_cache\_alloc+0x13e/0x190
\[   95.985242\]  ? \_\_wake\_up\_common\_lock+0x79/0x90
\[   95.988338\]  ? \_\_check\_object\_size+0xac/0x1b0
\[   95.991440\]  ? \_copy\_to\_user+0x22/0x30
\[   95.994539\]  ? move\_addr\_to\_user+0xbb/0xd0
\[   95.997619\]  ? \_\_sys\_sendmsg+0x53/0x80
\[   96.000664\]  \_\_sys\_sendmsg+0x53/0x80
\[   96.003747\]  do\_syscall\_64+0x5b/0x1d0
\[   96.006862\]  entry\_SYSCALL\_64\_after\_hwframe+0x65/0xca

Only update num\_txq/rxq when passed check, and restore tc\_cfg if setup
queue map failed.

## Affected and fixed versions

- Linux: \>= a632b2a4c920ce5af29410fb091f7ee6d2e77dc6, \< 7c945e5b4787db47d728120b56c934ba05f99864; \>= a632b2a4c920ce5af29410fb091f7ee6d2e77dc6, \< a509702cac95a8b450228a037c8542f57e538e5b; 4520c4bf4dca7aa285f30cb1ca8c08c531bbf0e9; \>= 5.18.8, \< 5.19 (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- Upgrade Linux to 5.19 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-48652. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48652.md
Affected: Linux >= a632b2a4c920ce5af29410fb091f7ee6d2e77dc6, < 7c945e5b4787db47d728120b56c934ba05f99864; >= a632b2a4c920ce5af29410fb091f7ee6d2e77dc6, < a509702cac95a8b450228a037c8542f57e538e5b; 4520c4bf4dca7aa285f30cb1ca8c08c531bbf0e9; >= 5.18.8, < 5.19; Linux 5.19
Fixed in: Linux 7c945e5b4787db47d728120b56c934ba05f99864, Linux 5.19

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-48652 being exploited?

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

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

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

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

Linux \>= a632b2a4c920ce5af29410fb091f7ee6d2e77dc6, \< 7c945e5b4787db47d728120b56c934ba05f99864; \>= a632b2a4c920ce5af29410fb091f7ee6d2e77dc6, \< a509702cac95a8b450228a037c8542f57e538e5b; 4520c4bf4dca7aa285f30cb1ca8c08c531bbf0e9; \>= 5.18.8, \< 5.19; Linux 5.19.

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

Yes. Fixed in Linux 7c945e5b4787db47d728120b56c934ba05f99864, Linux 5.19. Upgrade Linux to 5.19 or later.

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

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/7c945e5b4787db47d728120b56c934ba05f99864>
- patch: <https://git.kernel.org/stable/c/a509702cac95a8b450228a037c8542f57e538e5b>

## 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-48652>

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