# CVE-2022-49790: Input: iforce - invert valid length check when fetching device IDs

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-05-01T14:09:22.158Z
- Modified: 2026-06-17T05:19:09.323Z
- Weaknesses: CWE-908
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 6ac0aec6b0a651d64eef759fddf17d9145b51033 before 5d53797ce7ce8fb1d95a5bebc5efa9418c4217a3; from 6ac0aec6b0a651d64eef759fddf17d9145b51033 before 24cc679abbf31477d0cc6106ec83c2fbae6b3cdf; from 6ac0aec6b0a651d64eef759fddf17d9145b51033 before fdd57c20d4408cac3c3c535c120d244e083406c9; from 6ac0aec6b0a651d64eef759fddf17d9145b51033 before 6365569d62a75ddf53fb0c2936c16587a365984c; from 6ac0aec6b0a651d64eef759fddf17d9145b51033 before b8ebf250997c5fb253582f42bfe98673801ebebd; 5.3 (not affected: before 5.3; from 5.4.225 up to 5.4.*; from 5.10.156 up to 5.10.*; from 5.15.80 up to 5.15.*; from 6.0.10 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 5.3 before 5.4.225; from 5.5 before 5.10.156; from 5.11 before 5.15.80; from 5.16 before 6.0.10; 6.1

## References

- <https://git.kernel.org/stable/c/5d53797ce7ce8fb1d95a5bebc5efa9418c4217a3> (patch)
- <https://git.kernel.org/stable/c/24cc679abbf31477d0cc6106ec83c2fbae6b3cdf> (patch)
- <https://git.kernel.org/stable/c/fdd57c20d4408cac3c3c535c120d244e083406c9> (patch)
- <https://git.kernel.org/stable/c/6365569d62a75ddf53fb0c2936c16587a365984c> (patch)
- <https://git.kernel.org/stable/c/b8ebf250997c5fb253582f42bfe98673801ebebd> (patch)

## Sources

- CVE List: [CVE-2022-49790](https://www.cve.org/CVERecord?id=CVE-2022-49790), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49790](https://nvd.nist.gov/vuln/detail/CVE-2022-49790), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49790 · Whole record: https://cve.day/CVE-2022-49790.json · Rebuilt by cve.day 2026-11-25T22:58:20.872Z
