{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50301","id":"CVE-2022-50301","title":"iommu/omap: Fix buffer overflow in debugfs","description":"In the Linux kernel, the following vulnerability has been resolved:\n\niommu/omap: Fix buffer overflow in debugfs\n\nThere are two issues here:\n\n1) The \"len\" variable needs to be checked before the very first write.\n   Otherwise if omap2_iommu_dump_ctx() with \"bytes\" less than 32 it is a\n   buffer overflow.\n2) The snprintf() function returns the number of bytes that *would* have\n   been copied if ther","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\niommu/omap: Fix buffer overflow in debugfs\n\nThere are two issues here:\n\n1) The \"len\" variable needs to be checked before the very first write.\n   Otherwise if omap2_iommu_dump_ctx() with \"bytes\" less than 32 it is a\n   buffer overflow.\n2) The snprintf() function returns the number of bytes that *would* have\n   been copied if there were enough space.  But we want to know the\n   number of bytes which were *actually* copied so use scnprintf()\n   instead.","published":"2025-09-15T14:45:57.019Z","updated":"2026-10-28T02:30:52.621562073Z","reserved":"2025-09-15T14:18:36.812Z","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":"bd4396f09a4a9e77423e92ec9448217ab46f6edf","lessThan":"706e359cf046c142db290244c3f4938b20fbe805","status":"affected","versionType":"git"},{"version":"bd4396f09a4a9e77423e92ec9448217ab46f6edf","lessThan":"ec53b99b6b9da8b501f001595a6260c03b42d5b7","status":"affected","versionType":"git"},{"version":"bd4396f09a4a9e77423e92ec9448217ab46f6edf","lessThan":"648472df221f2bbffb433b964bcb87baccc586d8","status":"affected","versionType":"git"},{"version":"bd4396f09a4a9e77423e92ec9448217ab46f6edf","lessThan":"4010a1afaae1c0fb9c2cac5de703bed29b1f1782","status":"affected","versionType":"git"},{"version":"bd4396f09a4a9e77423e92ec9448217ab46f6edf","lessThan":"2fee0dbfaeaaa4bda04279ce772c4572b1429d04","status":"affected","versionType":"git"},{"version":"bd4396f09a4a9e77423e92ec9448217ab46f6edf","lessThan":"0c7043a5b5c3b35f5dc8875757f71e7f491d64d4","status":"affected","versionType":"git"},{"version":"bd4396f09a4a9e77423e92ec9448217ab46f6edf","lessThan":"bd0438f534b2e31b12f0b39b355c5dc2bbdaf854","status":"affected","versionType":"git"},{"version":"bd4396f09a4a9e77423e92ec9448217ab46f6edf","lessThan":"9814cc350e0765ce69244bf55ae4c8b29facd27e","status":"affected","versionType":"git"},{"version":"bd4396f09a4a9e77423e92ec9448217ab46f6edf","lessThan":"184233a5202786b20220acd2d04ddf909ef18f29","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.19","status":"affected"},{"version":"0","lessThan":"3.19","status":"unaffected","versionType":"semver"},{"version":"4.9.331","lessThanOrEqual":"4.9.*","status":"unaffected","versionType":"semver"},{"version":"4.14.296","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.262","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.220","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.150","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.75","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.19.17","lessThanOrEqual":"5.19.*","status":"unaffected","versionType":"semver"},{"version":"6.0.3","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-787"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/706e359cf046c142db290244c3f4938b20fbe805","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/ec53b99b6b9da8b501f001595a6260c03b42d5b7","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/648472df221f2bbffb433b964bcb87baccc586d8","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4010a1afaae1c0fb9c2cac5de703bed29b1f1782","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2fee0dbfaeaaa4bda04279ce772c4572b1429d04","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/0c7043a5b5c3b35f5dc8875757f71e7f491d64d4","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/bd0438f534b2e31b12f0b39b355c5dc2bbdaf854","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/9814cc350e0765ce69244bf55ae4c8b29facd27e","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/184233a5202786b20220acd2d04ddf909ef18f29","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50301.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50301","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.00197,"epssPercentile":0.09503,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50301","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50301","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50301","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-50301","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}