{"id":"CVE-2022-49790","aliases":["CVE-2022-49790"],"related":[],"kind":"vulnerability","state":"published","title":"Input: iforce - invert valid length check when fetching device IDs","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nInput: iforce - invert valid length check when fetching device IDs\n\nsyzbot is reporting uninitialized value at iforce_init_device() [1], for\ncommit 6ac0aec6b0a6 (\"Input: iforce - allow callers supply data buffer\nwhen fetching device IDs\") is checking that valid length is shorter than\nbytes to read. Since iforce_get_id_packet() stores valid length when\nreturning 0, the caller needs to check that valid length is longer than or\nequals to bytes to read.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nInput: iforce - invert valid length check when fetching device IDs\n\nsyzbot is reporting uninitialized value at iforce_init_device() [1], for\ncommit 6ac0aec6b0a6 (\"Input: iforce - allow callers supply data buffer\nwhen fetching device IDs\") is checking that valid length is shorter than\nbytes to read. Since iforce_get_id_packet() stores valid length when\nreturning 0, the caller needs to check that valid length is longer than or\nequals to bytes to read.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: Entrada: iforce - invierte la comprobación de longitud válida al obtener los ID de dispositivo. syzbot informa un valor no inicializado en iforce_init_device() [1], para el commit 6ac0aec6b0a6 (\"Entrada: iforce - permite que los llamantes suministren el búfer de datos al obtener los ID de dispositivo\") y comprueba que la longitud válida sea menor que los bytes a leer. Dado que iforce_get_id_packet() almacena la longitud válida al devolver 0, el llamante debe comprobar que la longitud válida sea mayor o igual que los bytes a leer.","source":"nvd"}],"published":"2025-05-01T14:09:22.158Z","modified":"2026-06-17T05:19:09.323Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-908"],"affected":[{"ranges":[{"type":"git","introduced":"6ac0aec6b0a651d64eef759fddf17d9145b51033","fixed":"5d53797ce7ce8fb1d95a5bebc5efa9418c4217a3","status":"affected"},{"type":"git","introduced":"6ac0aec6b0a651d64eef759fddf17d9145b51033","fixed":"24cc679abbf31477d0cc6106ec83c2fbae6b3cdf","status":"affected"},{"type":"git","introduced":"6ac0aec6b0a651d64eef759fddf17d9145b51033","fixed":"fdd57c20d4408cac3c3c535c120d244e083406c9","status":"affected"},{"type":"git","introduced":"6ac0aec6b0a651d64eef759fddf17d9145b51033","fixed":"6365569d62a75ddf53fb0c2936c16587a365984c","status":"affected"},{"type":"git","introduced":"6ac0aec6b0a651d64eef759fddf17d9145b51033","fixed":"b8ebf250997c5fb253582f42bfe98673801ebebd","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.3","status":"unaffected"},{"type":"semver","introduced":"5.4.225","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.156","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.80","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.10","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.3","fixed":"5.4.225"},{"status":"affected","introduced":"5.5","fixed":"5.10.156"},{"status":"affected","introduced":"5.11","fixed":"5.15.80"},{"status":"affected","introduced":"5.16","fixed":"6.0.10"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/5d53797ce7ce8fb1d95a5bebc5efa9418c4217a3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/24cc679abbf31477d0cc6106ec83c2fbae6b3cdf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fdd57c20d4408cac3c3c535c120d244e083406c9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6365569d62a75ddf53fb0c2936c16587a365984c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b8ebf250997c5fb253582f42bfe98673801ebebd","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49790","url":"https://www.cve.org/CVERecord?id=CVE-2022-49790","licence":"CVE Terms of Use","modified":"2026-05-11T19:06:50.241Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49790","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49790","licence":"Public domain","modified":"2026-06-17T05:19:09.323Z"}],"updatedAt":"2026-11-25T22:58:20.872Z","epss":{"score":0.00206,"percentile":0.11184,"date":"2026-12-01T12:00:22.000Z"}}