# CVE-2022-50151: usb: cdns3: fix random warning message when driver load

> 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.30% (percentile 15, 2026-11-26)
- **Published:** 2025-06-18T11:03:10.569Z
- **Modified:** 2026-08-15T13:17:30.620Z

## Who should check

- Anyone running Linux \>= b9b1eae761eeae665824ca6ef7f91da4fc798ebb, \< 8e142744f0e96abc69ccd99e6d6c7eb662267f21; \>= b9b1eae761eeae665824ca6ef7f91da4fc798ebb, \< 960a8a35a6027a08c4b511435bf59609b5d5e5cd; \>= b9b1eae761eeae665824ca6ef7f91da4fc798ebb, \< 8659ab3d936fcf0084676f98b75b317017aa8f82
- Anyone running Linux 5.13

## Description

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

usb: cdns3: fix random warning message when driver load

Warning log:
\[    4.141392\] Unexpected gfp: 0x4 (GFP\_DMA32). Fixing up to gfp: 0xa20 (GFP\_ATOMIC). Fix your code!
\[    4.150340\] CPU: 1 PID: 175 Comm: 1-0050 Not tainted 5.15.5-00039-g2fd9ae1b568c \#20
\[    4.158010\] Hardware name: Freescale i.MX8QXP MEK (DT)
\[    4.163155\] Call trace:
\[    4.165600\]  dump\_backtrace+0x0/0x1b0
\[    4.169286\]  show\_stack+0x18/0x68
\[    4.172611\]  dump\_stack\_lvl+0x68/0x84
\[    4.176286\]  dump\_stack+0x18/0x34
\[    4.179613\]  kmalloc\_fix\_flags+0x60/0x88
\[    4.183550\]  new\_slab+0x334/0x370
\[    4.186878\]  \_\_\_slab\_alloc.part.108+0x4d4/0x748
\[    4.191419\]  \_\_slab\_alloc.isra.109+0x30/0x78
\[    4.195702\]  kmem\_cache\_alloc+0x40c/0x420
\[    4.199725\]  dma\_pool\_alloc+0xac/0x1f8
\[    4.203486\]  cdns3\_allocate\_trb\_pool+0xb4/0xd0

pool\_alloc\_page(struct dma\_pool \*pool, gfp\_t mem\_flags)
{
	...
	page = kmalloc(sizeof(\*page), mem\_flags);
	page-\>vaddr = dma\_alloc\_coherent(pool-\>dev, pool-\>allocation,
					 &page-\>dma, mem\_flags);
	...
}

kmalloc was called with mem\_flags, which is passed down in
cdns3\_allocate\_trb\_pool() and have GFP\_DMA32 flags.
kmall\_fix\_flags() report warning.

GFP\_DMA32 is not useful at all. dma\_alloc\_coherent() will handle
DMA memory region correctly by pool-\>dev. GFP\_DMA32 can be removed
safely.

## Affected and fixed versions

- Linux: \>= b9b1eae761eeae665824ca6ef7f91da4fc798ebb, \< 8e142744f0e96abc69ccd99e6d6c7eb662267f21; \>= b9b1eae761eeae665824ca6ef7f91da4fc798ebb, \< 960a8a35a6027a08c4b511435bf59609b5d5e5cd; \>= b9b1eae761eeae665824ca6ef7f91da4fc798ebb, \< 8659ab3d936fcf0084676f98b75b317017aa8f82 (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-50151.md
Affected: Linux >= b9b1eae761eeae665824ca6ef7f91da4fc798ebb, < 8e142744f0e96abc69ccd99e6d6c7eb662267f21; >= b9b1eae761eeae665824ca6ef7f91da4fc798ebb, < 960a8a35a6027a08c4b511435bf59609b5d5e5cd; >= b9b1eae761eeae665824ca6ef7f91da4fc798ebb, < 8659ab3d936fcf0084676f98b75b317017aa8f82; Linux 5.13
Fixed in: Linux 8e142744f0e96abc69ccd99e6d6c7eb662267f21, Linux 960a8a35a6027a08c4b511435bf59609b5d5e5cd, Linux 8659ab3d936fcf0084676f98b75b317017aa8f82

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

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

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

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

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

Linux \>= b9b1eae761eeae665824ca6ef7f91da4fc798ebb, \< 8e142744f0e96abc69ccd99e6d6c7eb662267f21; \>= b9b1eae761eeae665824ca6ef7f91da4fc798ebb, \< 960a8a35a6027a08c4b511435bf59609b5d5e5cd; \>= b9b1eae761eeae665824ca6ef7f91da4fc798ebb, \< 8659ab3d936fcf0084676f98b75b317017aa8f82; Linux 5.13.

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

Yes. Fixed in Linux 8e142744f0e96abc69ccd99e6d6c7eb662267f21, Linux 960a8a35a6027a08c4b511435bf59609b5d5e5cd, Linux 8659ab3d936fcf0084676f98b75b317017aa8f82. Upgrade Linux to 8659ab3d936fcf0084676f98b75b317017aa8f82 or later.

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

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/8e142744f0e96abc69ccd99e6d6c7eb662267f21>
- patch: <https://git.kernel.org/stable/c/960a8a35a6027a08c4b511435bf59609b5d5e5cd>
- patch: <https://git.kernel.org/stable/c/8659ab3d936fcf0084676f98b75b317017aa8f82>

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

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