{"id":"CVE-2022-50301","aliases":["CVE-2022-50301"],"related":[],"kind":"vulnerability","state":"published","title":"iommu/omap: Fix buffer overflow in debugfs","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2025-09-15T14:45:57.019Z","modified":"2026-06-17T05:23:11.247Z","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-787"],"affected":[{"ranges":[{"type":"git","introduced":"bd4396f09a4a9e77423e92ec9448217ab46f6edf","fixed":"706e359cf046c142db290244c3f4938b20fbe805","status":"affected"},{"type":"git","introduced":"bd4396f09a4a9e77423e92ec9448217ab46f6edf","fixed":"ec53b99b6b9da8b501f001595a6260c03b42d5b7","status":"affected"},{"type":"git","introduced":"bd4396f09a4a9e77423e92ec9448217ab46f6edf","fixed":"648472df221f2bbffb433b964bcb87baccc586d8","status":"affected"},{"type":"git","introduced":"bd4396f09a4a9e77423e92ec9448217ab46f6edf","fixed":"4010a1afaae1c0fb9c2cac5de703bed29b1f1782","status":"affected"},{"type":"git","introduced":"bd4396f09a4a9e77423e92ec9448217ab46f6edf","fixed":"2fee0dbfaeaaa4bda04279ce772c4572b1429d04","status":"affected"},{"type":"git","introduced":"bd4396f09a4a9e77423e92ec9448217ab46f6edf","fixed":"0c7043a5b5c3b35f5dc8875757f71e7f491d64d4","status":"affected"},{"type":"git","introduced":"bd4396f09a4a9e77423e92ec9448217ab46f6edf","fixed":"bd0438f534b2e31b12f0b39b355c5dc2bbdaf854","status":"affected"},{"type":"git","introduced":"bd4396f09a4a9e77423e92ec9448217ab46f6edf","fixed":"9814cc350e0765ce69244bf55ae4c8b29facd27e","status":"affected"},{"type":"git","introduced":"bd4396f09a4a9e77423e92ec9448217ab46f6edf","fixed":"184233a5202786b20220acd2d04ddf909ef18f29","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.19","status":"unaffected"},{"type":"semver","introduced":"4.9.331","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.296","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.262","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.220","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.150","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.75","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.19.17","lastAffected":"5.19.*","status":"unaffected"},{"type":"semver","introduced":"6.0.3","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":"3.19","fixed":"4.9.331"},{"status":"affected","introduced":"4.10","fixed":"4.14.296"},{"status":"affected","introduced":"4.15","fixed":"4.19.262"},{"status":"affected","introduced":"4.20","fixed":"5.4.220"},{"status":"affected","introduced":"5.5","fixed":"5.10.150"},{"status":"affected","introduced":"5.11","fixed":"5.15.75"},{"status":"affected","introduced":"5.16","fixed":"5.19.17"},{"status":"affected","introduced":"6.0","fixed":"6.0.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/706e359cf046c142db290244c3f4938b20fbe805","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ec53b99b6b9da8b501f001595a6260c03b42d5b7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/648472df221f2bbffb433b964bcb87baccc586d8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4010a1afaae1c0fb9c2cac5de703bed29b1f1782","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2fee0dbfaeaaa4bda04279ce772c4572b1429d04","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0c7043a5b5c3b35f5dc8875757f71e7f491d64d4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bd0438f534b2e31b12f0b39b355c5dc2bbdaf854","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9814cc350e0765ce69244bf55ae4c8b29facd27e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/184233a5202786b20220acd2d04ddf909ef18f29","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50301","url":"https://www.cve.org/CVERecord?id=CVE-2022-50301","licence":"CVE Terms of Use","modified":"2026-05-11T19:16:40.085Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50301","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50301","licence":"Public domain","modified":"2026-06-17T05:23:11.247Z"}],"updatedAt":"2026-11-25T22:58:21.155Z","epss":{"score":0.00197,"percentile":0.09863,"date":"2026-12-01T12:00:22.000Z"}}