CVE-2022-50301 (GCVE-0-2022-50301)
Vulnerability from cvelistv5
Published
2025-09-15 14:45
Modified
2025-09-15 14:45
Severity ?
VLAI Severity ?
EPSS score ?
Summary
In the Linux kernel, the following vulnerability has been resolved:
iommu/omap: Fix buffer overflow in debugfs
There are two issues here:
1) The "len" variable needs to be checked before the very first write.
Otherwise if omap2_iommu_dump_ctx() with "bytes" less than 32 it is a
buffer overflow.
2) The snprintf() function returns the number of bytes that *would* have
been copied if there were enough space. But we want to know the
number of bytes which were *actually* copied so use scnprintf()
instead.
References
Impacted products
Vendor | Product | Version | |||||||
---|---|---|---|---|---|---|---|---|---|
▼ | Linux | Linux |
Version: bd4396f09a4a9e77423e92ec9448217ab46f6edf Version: bd4396f09a4a9e77423e92ec9448217ab46f6edf Version: bd4396f09a4a9e77423e92ec9448217ab46f6edf Version: bd4396f09a4a9e77423e92ec9448217ab46f6edf Version: bd4396f09a4a9e77423e92ec9448217ab46f6edf Version: bd4396f09a4a9e77423e92ec9448217ab46f6edf Version: bd4396f09a4a9e77423e92ec9448217ab46f6edf Version: bd4396f09a4a9e77423e92ec9448217ab46f6edf Version: bd4396f09a4a9e77423e92ec9448217ab46f6edf |
||||||
|
{ "containers": { "cna": { "affected": [ { "defaultStatus": "unaffected", "product": "Linux", "programFiles": [ "drivers/iommu/omap-iommu-debug.c" ], "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "vendor": "Linux", "versions": [ { "lessThan": "706e359cf046c142db290244c3f4938b20fbe805", "status": "affected", "version": "bd4396f09a4a9e77423e92ec9448217ab46f6edf", "versionType": "git" }, { "lessThan": "ec53b99b6b9da8b501f001595a6260c03b42d5b7", "status": "affected", "version": "bd4396f09a4a9e77423e92ec9448217ab46f6edf", "versionType": "git" }, { "lessThan": "648472df221f2bbffb433b964bcb87baccc586d8", "status": "affected", "version": "bd4396f09a4a9e77423e92ec9448217ab46f6edf", "versionType": "git" }, { "lessThan": "4010a1afaae1c0fb9c2cac5de703bed29b1f1782", "status": "affected", "version": "bd4396f09a4a9e77423e92ec9448217ab46f6edf", "versionType": "git" }, { "lessThan": "2fee0dbfaeaaa4bda04279ce772c4572b1429d04", "status": "affected", "version": "bd4396f09a4a9e77423e92ec9448217ab46f6edf", "versionType": "git" }, { "lessThan": "0c7043a5b5c3b35f5dc8875757f71e7f491d64d4", "status": "affected", "version": "bd4396f09a4a9e77423e92ec9448217ab46f6edf", "versionType": "git" }, { "lessThan": "bd0438f534b2e31b12f0b39b355c5dc2bbdaf854", "status": "affected", "version": "bd4396f09a4a9e77423e92ec9448217ab46f6edf", "versionType": "git" }, { "lessThan": "9814cc350e0765ce69244bf55ae4c8b29facd27e", "status": "affected", "version": "bd4396f09a4a9e77423e92ec9448217ab46f6edf", "versionType": "git" }, { "lessThan": "184233a5202786b20220acd2d04ddf909ef18f29", "status": "affected", "version": "bd4396f09a4a9e77423e92ec9448217ab46f6edf", "versionType": "git" } ] }, { "defaultStatus": "affected", "product": "Linux", "programFiles": [ "drivers/iommu/omap-iommu-debug.c" ], "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "vendor": "Linux", "versions": [ { "status": "affected", "version": "3.19" }, { "lessThan": "3.19", "status": "unaffected", "version": "0", "versionType": "semver" }, { "lessThanOrEqual": "4.9.*", "status": "unaffected", "version": "4.9.331", "versionType": "semver" }, { "lessThanOrEqual": "4.14.*", "status": "unaffected", "version": "4.14.296", "versionType": "semver" }, { "lessThanOrEqual": "4.19.*", "status": "unaffected", "version": "4.19.262", "versionType": "semver" }, { "lessThanOrEqual": "5.4.*", "status": "unaffected", "version": "5.4.220", "versionType": "semver" }, { "lessThanOrEqual": "5.10.*", "status": "unaffected", "version": "5.10.150", "versionType": "semver" }, { "lessThanOrEqual": "5.15.*", "status": "unaffected", "version": "5.15.75", "versionType": "semver" }, { "lessThanOrEqual": "5.19.*", "status": "unaffected", "version": "5.19.17", "versionType": "semver" }, { "lessThanOrEqual": "6.0.*", "status": "unaffected", "version": "6.0.3", "versionType": "semver" }, { "lessThanOrEqual": "*", "status": "unaffected", "version": "6.1", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "cpeMatch": [ { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "4.9.331", "versionStartIncluding": "3.19", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "4.14.296", "versionStartIncluding": "3.19", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "4.19.262", "versionStartIncluding": "3.19", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "5.4.220", "versionStartIncluding": "3.19", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "5.10.150", "versionStartIncluding": "3.19", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "5.15.75", "versionStartIncluding": "3.19", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "5.19.17", "versionStartIncluding": "3.19", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "6.0.3", "versionStartIncluding": "3.19", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "6.1", "versionStartIncluding": "3.19", "vulnerable": true } ], "negate": false, "operator": "OR" } ] } ], "descriptions": [ { "lang": "en", "value": "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." } ], "providerMetadata": { "dateUpdated": "2025-09-15T14:45:57.019Z", "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux" }, "references": [ { "url": "https://git.kernel.org/stable/c/706e359cf046c142db290244c3f4938b20fbe805" }, { "url": "https://git.kernel.org/stable/c/ec53b99b6b9da8b501f001595a6260c03b42d5b7" }, { "url": "https://git.kernel.org/stable/c/648472df221f2bbffb433b964bcb87baccc586d8" }, { "url": "https://git.kernel.org/stable/c/4010a1afaae1c0fb9c2cac5de703bed29b1f1782" }, { "url": "https://git.kernel.org/stable/c/2fee0dbfaeaaa4bda04279ce772c4572b1429d04" }, { "url": "https://git.kernel.org/stable/c/0c7043a5b5c3b35f5dc8875757f71e7f491d64d4" }, { "url": "https://git.kernel.org/stable/c/bd0438f534b2e31b12f0b39b355c5dc2bbdaf854" }, { "url": "https://git.kernel.org/stable/c/9814cc350e0765ce69244bf55ae4c8b29facd27e" }, { "url": "https://git.kernel.org/stable/c/184233a5202786b20220acd2d04ddf909ef18f29" } ], "title": "iommu/omap: Fix buffer overflow in debugfs", "x_generator": { "engine": "bippy-1.2.0" } } }, "cveMetadata": { "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "assignerShortName": "Linux", "cveId": "CVE-2022-50301", "datePublished": "2025-09-15T14:45:57.019Z", "dateReserved": "2025-09-15T14:18:36.812Z", "dateUpdated": "2025-09-15T14:45:57.019Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1", "vulnerability-lookup:meta": { "nvd": "{\"cve\":{\"id\":\"CVE-2022-50301\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-09-15T15:15:41.597\",\"lastModified\":\"2025-09-15T15:22:27.090\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"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.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/0c7043a5b5c3b35f5dc8875757f71e7f491d64d4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/184233a5202786b20220acd2d04ddf909ef18f29\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/2fee0dbfaeaaa4bda04279ce772c4572b1429d04\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/4010a1afaae1c0fb9c2cac5de703bed29b1f1782\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/648472df221f2bbffb433b964bcb87baccc586d8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/706e359cf046c142db290244c3f4938b20fbe805\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/9814cc350e0765ce69244bf55ae4c8b29facd27e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/bd0438f534b2e31b12f0b39b355c5dc2bbdaf854\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ec53b99b6b9da8b501f001595a6260c03b42d5b7\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}" } }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…