CVE-2022-49790

Source
https://cve.org/CVERecord?id=CVE-2022-49790
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49790.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49790
Downstream
Related
Published
2025-05-01T14:09:22.158Z
Modified
2026-03-12T03:25:45.455189Z
Summary
Input: iforce - invert valid length check when fetching device IDs
Details

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 iforceinitdevice() [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 iforcegetid_packet() stores valid length when returning 0, the caller needs to check that valid length is longer than or equals to bytes to read.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49790.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6ac0aec6b0a651d64eef759fddf17d9145b51033
Fixed
5d53797ce7ce8fb1d95a5bebc5efa9418c4217a3
Fixed
24cc679abbf31477d0cc6106ec83c2fbae6b3cdf
Fixed
fdd57c20d4408cac3c3c535c120d244e083406c9
Fixed
6365569d62a75ddf53fb0c2936c16587a365984c
Fixed
b8ebf250997c5fb253582f42bfe98673801ebebd

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49790.json"