Bug 1225102 (CVE-2021-47339) - VUL-0: CVE-2021-47339: kernel: media: v4l2-core: explicitly clear ioctl input data
Summary: VUL-0: CVE-2021-47339: kernel: media: v4l2-core: explicitly clear ioctl input...
Status: RESOLVED FIXED
Alias: CVE-2021-47339
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/406976/
Whiteboard: CVSSv3.1:SUSE:CVE-2021-47339:5.5:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-23 09:13 UTC by SMASH SMASH
Modified: 2024-05-27 08:05 UTC (History)
4 users (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-05-23 09:13:35 UTC
In the Linux kernel, the following vulnerability has been resolved:

media: v4l2-core: explicitly clear ioctl input data

As seen from a recent syzbot bug report, mistakes in the compat ioctl
implementation can lead to uninitialized kernel stack data getting used
as input for driver ioctl handlers.

The reported bug is now fixed, but it's possible that other related
bugs are still present or get added in the future. As the drivers need
to check user input already, the possible impact is fairly low, but it
might still cause an information leak.

To be on the safe side, always clear the entire ioctl buffer before
calling the conversion handler functions that are meant to initialize
them.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-47339
https://www.cve.org/CVERecord?id=CVE-2021-47339
https://git.kernel.org/stable/c/7b53cca764f9b291b7907fcd39d9e66ad728ee0b
https://git.kernel.org/stable/c/bfb48b54db25c3b4ef4bef5e0691464ebc4aa335
https://git.kernel.org/stable/c/dc02c0b2bd6096f2f3ce63e1fc317aeda05f74d8
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2021/CVE-2021-47339.mbox
https://bugzilla.redhat.com/show_bug.cgi?id=2282421
Comment 2 Takashi Iwai 2024-05-24 17:12:54 UTC
I don't think this is fixing any actual bugs, something 'just to be sure'.

And there is no relevant code found in SLE12-SP5 and SLE12-SP3-TD abound compat ioctl handling there, so this can be pushed back.
Comment 3 Gabriel Krisman Bertazi 2024-05-24 18:24:36 UTC
(In reply to Takashi Iwai from comment #2)
> I don't think this is fixing any actual bugs, something 'just to be sure'.
> 
> And there is no relevant code found in SLE12-SP5 and SLE12-SP3-TD abound
> compat ioctl handling there, so this can be pushed back.

Takashi, do you intend to dispute it according to [1]?  If not, based on your comment about SLE12*, this will be nop and we can reassign to security team, since newer branches are already fixed.

https://wiki.suse.net/index.php?title=SUSE-Labs/kernel/sec#Disputing_CVEs
Comment 4 Takashi Iwai 2024-05-24 19:19:25 UTC
I don't think we need to spend our energy for dispute.  I'm for just skipping for the older code.
Comment 6 Andrea Mattiazzo 2024-05-27 08:05:01 UTC
All done, closing.