{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50245","id":"CVE-2022-50245","title":"rapidio: fix possible UAF when kfifo_alloc() fails","description":"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->li","descriptionLong":"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","published":"2025-09-15T14:02:03.353Z","updated":"2026-10-28T02:30:33.991195005Z","reserved":"2025-09-15T13:58:00.972Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e8de370188d098bb49483c287b44925957c3c9b6","lessThan":"2a6c75adf8192f07ddcdd4a1a13488c890a73919","status":"affected","versionType":"git"},{"version":"e8de370188d098bb49483c287b44925957c3c9b6","lessThan":"2dfd60724d271a6ab99f93f40f38f2ced1ddbb87","status":"affected","versionType":"git"},{"version":"e8de370188d098bb49483c287b44925957c3c9b6","lessThan":"a253dde0403a153075ffb254f6f7b2635e49e97a","status":"affected","versionType":"git"},{"version":"e8de370188d098bb49483c287b44925957c3c9b6","lessThan":"311b488405ac45af46756b1c8f1d27007b68b07e","status":"affected","versionType":"git"},{"version":"e8de370188d098bb49483c287b44925957c3c9b6","lessThan":"5ee850645e42f541ce1ea8130c2b27cc495f965c","status":"affected","versionType":"git"},{"version":"e8de370188d098bb49483c287b44925957c3c9b6","lessThan":"2f5cc7fd73fd6253cc71214f0dd499cc62feb469","status":"affected","versionType":"git"},{"version":"e8de370188d098bb49483c287b44925957c3c9b6","lessThan":"2ba06e57f933f0eac242e8b389433da1cc00d4d5","status":"affected","versionType":"git"},{"version":"e8de370188d098bb49483c287b44925957c3c9b6","lessThan":"cb87af2c19c0993f6e21f75b963a5599c5a73e76","status":"affected","versionType":"git"},{"version":"e8de370188d098bb49483c287b44925957c3c9b6","lessThan":"02d7d89f816951e0862147d751b1150d67aaebdd","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.6","status":"affected"},{"version":"0","lessThan":"4.6","status":"unaffected","versionType":"semver"},{"version":"4.9.337","lessThanOrEqual":"4.9.*","status":"unaffected","versionType":"semver"},{"version":"4.14.303","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.270","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.229","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.163","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.86","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.0.16","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1.2","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-416"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/2a6c75adf8192f07ddcdd4a1a13488c890a73919","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2dfd60724d271a6ab99f93f40f38f2ced1ddbb87","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/a253dde0403a153075ffb254f6f7b2635e49e97a","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/311b488405ac45af46756b1c8f1d27007b68b07e","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/5ee850645e42f541ce1ea8130c2b27cc495f965c","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2f5cc7fd73fd6253cc71214f0dd499cc62feb469","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2ba06e57f933f0eac242e8b389433da1cc00d4d5","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/cb87af2c19c0993f6e21f75b963a5599c5a73e76","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/02d7d89f816951e0862147d751b1150d67aaebdd","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50245.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50245","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00178,"epssPercentile":0.07505,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50245","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50245","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50245","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-50245","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}