Bug 1220647 (CVE-2021-47039) - VUL-0: CVE-2021-47039: kernel: ataflop: potential out of bounds in do_format()
Summary: VUL-0: CVE-2021-47039: kernel: ataflop: potential out of bounds in do_format()
Status: RESOLVED FIXED
Alias: CVE-2021-47039
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Kernel Bugs
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/395486/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-29 10:15 UTC by SMASH SMASH
Modified: 2024-02-29 10:15 UTC (History)
1 user (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-02-29 10:15:18 UTC
In the Linux kernel, the following vulnerability has been resolved:

ataflop: potential out of bounds in do_format()

The function uses "type" as an array index:

	q = unit[drive].disk[type]->queue;

Unfortunately the bounds check on "type" isn't done until later in the
function.  Fix this by moving the bounds check to the start.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-47039
https://www.cve.org/CVERecord?id=CVE-2021-47039
https://git.kernel.org/stable/c/07f86aa8f4fe077be1b018cc177eb8c6573e5671
https://git.kernel.org/stable/c/1ffec389a6431782a8a28805830b6fae9bf00af1
https://git.kernel.org/stable/c/2a3a8bbca28b899806844c00d49ed1b7ccb50957
Comment 1 Thomas Leroy 2024-02-29 10:15:55 UTC
Affected branches (SLE15-SP6, cve/linux-5.14, stable) already fixed, closing