CVE-2022-50407 crypto: hisilicon/qm - increase the memory of local variables
A stack overflow in the Linux kernel's Hisilicon QM driver allows attackers to cause a denial of service via crafted QoS configuration.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-50407?
CVE-2022-50407 is a medium-severity memory corruption vulnerability in Linux kernel, published on 18 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
crypto: hisilicon/qm - increase the memory of local variables
Increase the buffer to prevent stack overflow by fuzz test. The maximum length of the qos configuration buffer is 256 bytes. Currently, the value of the 'val buffer' is only 32 bytes. The sscanf does not check the dest memory length. So the 'val buffer' may stack overflow.
Weakness: CWE-674
Which versions are affected by CVE-2022-50407?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-50407?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2022-50407 being exploited?
There is no known exploitation of CVE-2022-50407 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-71897, DEBIAN-CVE-2022-50407, GHSA-h85m-6qg2-23fm, ROOT-OS-DEBIAN-11-CVE-2022-50407, ROOT-OS-UBUNTU-2204-CVE-2022-50407, UBUNTU-CVE-2022-50407.