{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-47039","id":"CVE-2021-47039","title":"ataflop: potential out of bounds in do_format()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nataflop: potential out of bounds in do_format()\n\nThe function uses \"type\" as an array index:\n\n\tq = unit[drive].disk[type]->queue;\n\nUnfortunately the bounds check on \"type\" isn't done until later in the\nfunction.  Fix this by moving the bounds check to the start.","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nataflop: potential out of bounds in do_format()\n\nThe function uses \"type\" as an array index:\n\n\tq = unit[drive].disk[type]->queue;\n\nUnfortunately the bounds check on \"type\" isn't done until later in the\nfunction.  Fix this by moving the bounds check to the start.","published":"2024-02-28T08:13:45.937Z","updated":"2026-06-17T04:16:16.710Z","reserved":"2024-02-27T18:42:55.968Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","rating":"high","source":"NVD"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bf9c0538e485b591a2ee02d9adb8a99db4be5a2a","lessThan":"07f86aa8f4fe077be1b018cc177eb8c6573e5671","status":"affected","versionType":"git"},{"version":"bf9c0538e485b591a2ee02d9adb8a99db4be5a2a","lessThan":"2a3a8bbca28b899806844c00d49ed1b7ccb50957","status":"affected","versionType":"git"},{"version":"bf9c0538e485b591a2ee02d9adb8a99db4be5a2a","lessThan":"1ffec389a6431782a8a28805830b6fae9bf00af1","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","lessThan":"5.11","status":"unaffected","versionType":"semver"},{"version":"5.11.21","lessThanOrEqual":"5.11.*","status":"unaffected","versionType":"semver"},{"version":"5.12.4","lessThanOrEqual":"5.12.*","status":"unaffected","versionType":"semver"},{"version":"5.13","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-125"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/07f86aa8f4fe077be1b018cc177eb8c6573e5671","tags":["x_transferred","Patch"]},{"url":"https://git.kernel.org/stable/c/2a3a8bbca28b899806844c00d49ed1b7ccb50957","tags":["x_transferred","Patch"]},{"url":"https://git.kernel.org/stable/c/1ffec389a6431782a8a28805830b6fae9bf00af1","tags":["x_transferred","Patch"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00244,"epssPercentile":0.15824,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-47039","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47039","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-47039","ok":false,"note":"no open-source package data"},{"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-2021-47039","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}