{"id":"CVE-2022-50245","aliases":["CVE-2022-50245"],"related":[],"kind":"vulnerability","state":"published","title":"rapidio: fix possible UAF when kfifo_alloc() fails","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nrapidio: fix possible UAF when kfifo_alloc() fails\n\nIf kfifo_alloc() fails in mport_cdev_open(), goto err_fifo and just free\npriv. But priv is still in the chdev->file_list, then list traversal\nmay cause UAF. This fixes the following smatch warning:\n\ndrivers/rapidio/devices/rio_mport_cdev.c:1930 mport_cdev_open() warn: '&priv->list' not removed from list","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nrapidio: fix possible UAF when kfifo_alloc() fails\n\nIf kfifo_alloc() fails in mport_cdev_open(), goto err_fifo and just free\npriv. But priv is still in the chdev->file_list, then list traversal\nmay cause UAF. This fixes the following smatch warning:\n\ndrivers/rapidio/devices/rio_mport_cdev.c:1930 mport_cdev_open() warn: '&priv->list' not removed from list","source":"cvelist"}],"published":"2025-09-15T14:02:03.353Z","modified":"2026-06-17T05:23:03.843Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"e8de370188d098bb49483c287b44925957c3c9b6","fixed":"2a6c75adf8192f07ddcdd4a1a13488c890a73919","status":"affected"},{"type":"git","introduced":"e8de370188d098bb49483c287b44925957c3c9b6","fixed":"2dfd60724d271a6ab99f93f40f38f2ced1ddbb87","status":"affected"},{"type":"git","introduced":"e8de370188d098bb49483c287b44925957c3c9b6","fixed":"a253dde0403a153075ffb254f6f7b2635e49e97a","status":"affected"},{"type":"git","introduced":"e8de370188d098bb49483c287b44925957c3c9b6","fixed":"311b488405ac45af46756b1c8f1d27007b68b07e","status":"affected"},{"type":"git","introduced":"e8de370188d098bb49483c287b44925957c3c9b6","fixed":"5ee850645e42f541ce1ea8130c2b27cc495f965c","status":"affected"},{"type":"git","introduced":"e8de370188d098bb49483c287b44925957c3c9b6","fixed":"2f5cc7fd73fd6253cc71214f0dd499cc62feb469","status":"affected"},{"type":"git","introduced":"e8de370188d098bb49483c287b44925957c3c9b6","fixed":"2ba06e57f933f0eac242e8b389433da1cc00d4d5","status":"affected"},{"type":"git","introduced":"e8de370188d098bb49483c287b44925957c3c9b6","fixed":"cb87af2c19c0993f6e21f75b963a5599c5a73e76","status":"affected"},{"type":"git","introduced":"e8de370188d098bb49483c287b44925957c3c9b6","fixed":"02d7d89f816951e0862147d751b1150d67aaebdd","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.6","status":"unaffected"},{"type":"semver","introduced":"4.9.337","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.303","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.270","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","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":"4.6","fixed":"4.9.337"},{"status":"affected","introduced":"4.10","fixed":"4.14.303"},{"status":"affected","introduced":"4.15","fixed":"4.19.270"},{"status":"affected","introduced":"4.20","fixed":"5.4.229"},{"status":"affected","introduced":"5.5","fixed":"5.10.163"},{"status":"affected","introduced":"5.11","fixed":"5.15.86"},{"status":"affected","introduced":"5.16","fixed":"6.0.16"},{"status":"affected","introduced":"6.1","fixed":"6.1.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/2a6c75adf8192f07ddcdd4a1a13488c890a73919","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2dfd60724d271a6ab99f93f40f38f2ced1ddbb87","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a253dde0403a153075ffb254f6f7b2635e49e97a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/311b488405ac45af46756b1c8f1d27007b68b07e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5ee850645e42f541ce1ea8130c2b27cc495f965c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2f5cc7fd73fd6253cc71214f0dd499cc62feb469","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2ba06e57f933f0eac242e8b389433da1cc00d4d5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cb87af2c19c0993f6e21f75b963a5599c5a73e76","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/02d7d89f816951e0862147d751b1150d67aaebdd","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50245","url":"https://www.cve.org/CVERecord?id=CVE-2022-50245","licence":"CVE Terms of Use","modified":"2026-05-11T19:15:34.798Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50245","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50245","licence":"Public domain","modified":"2026-06-17T05:23:03.843Z"}],"updatedAt":"2026-11-25T22:58:21.126Z","epss":{"score":0.00178,"percentile":0.07725,"date":"2026-12-01T12:00:22.000Z"}}