CVE-2022-49790 Input: iforce - invert valid length check when fetching device IDs
A logic error in the Linux kernel iforce driver allows reading uninitialized memory, potentially disclosing sensitive kernel data to local attackers.
- 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-49790?
CVE-2022-49790 is a medium-severity vulnerability in Linux kernel, published on 1 May 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:
Input: iforce - invert valid length check when fetching device IDs
syzbot is reporting uninitialized value at iforce_init_device() [1], for commit 6ac0aec6b0a6 ("Input: iforce - allow callers supply data buffer when fetching device IDs") is checking that valid length is shorter than bytes to read. Since iforce_get_id_packet() stores valid length when returning 0, the caller needs to check that valid length is longer than or equals to bytes to read.
Weakness: CWE-908
Which versions are affected by CVE-2022-49790?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-49790?
Apply the vendor's patch.
Is CVE-2022-49790 being exploited?
There is no known exploitation of CVE-2022-49790 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-49790, GHSA-3x3q-3c9j-4x72, UBUNTU-CVE-2022-49790.