Input: iforce - invert valid length check when fetching device IDs
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.156, 5.15.80, 5.4.225, 6.0.10
- CVEs
- CVE-2022-49790
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 17:04 UTC · Revision 1
Source evidence
Input: iforce - invert valid length check when fetching device IDs
core-osv · Original sourcePublished 1 May 2025, 14:09 UTC
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.
osv:CVE-2022-49790
Kernel
Fixed versions: 5.4.225, 5.10.156, 5.15.80, 6.0.10
Complete source record
{
"id": "8dec1653a763fe9321fa1792c28669b948b2558a3c751fdfb678a5c2a72bfb0c",
"url": "https://osv.dev/vulnerability/CVE-2022-49790",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Input: iforce - invert valid length check when fetching device IDs",
"summary": "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.",
"evidence": "osv:CVE-2022-49790",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.4.225",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.156",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.80",
"evidence": "/affected/1/ranges"
},
{
"value": "6.0.10",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-49790",
"aliases": [
"CVE-2022-49790"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "6ac0aec6b0a651d64eef759fddf17d9145b51033"
},
{
"fixed": "5d53797ce7ce8fb1d95a5bebc5efa9418c4217a3"
},
{
"fixed": "24cc679abbf31477d0cc6106ec83c2fbae6b3cdf"
},
{
"fixed": "fdd57c20d4408cac3c3c535c120d244e083406c9"
},
{
"fixed": "6365569d62a75ddf53fb0c2936c16587a365984c"
},
{
"fixed": "b8ebf250997c5fb253582f42bfe98673801ebebd"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49790.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.3.0"
},
{
"fixed": "5.4.225"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.156"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.80"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.0.10"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49790.json"
}
}
],
"modified": "2026-10-28T02:30:21.409856329Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/24cc679abbf31477d0cc6106ec83c2fbae6b3cdf",
"https://git.kernel.org/stable/c/5d53797ce7ce8fb1d95a5bebc5efa9418c4217a3",
"https://git.kernel.org/stable/c/6365569d62a75ddf53fb0c2936c16587a365984c",
"https://git.kernel.org/stable/c/b8ebf250997c5fb253582f42bfe98673801ebebd",
"https://git.kernel.org/stable/c/fdd57c20d4408cac3c3c535c120d244e083406c9",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49790.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-49790",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49790.json"
}
},
"related_cves": [
{
"value": "CVE-2022-49790",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 487459,
"published_at": "2025-05-01T14:09:22.158+00:00"
}