Bug 1946279 (CVE-2021-30002) - CVE-2021-30002 kernel: memory leak for large arguments in video_usercopy function in drivers/media/v4l2-core/v4l2-ioctl.c
Summary: CVE-2021-30002 kernel: memory leak for large arguments in video_usercopy func...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-30002
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1946280 1954601 1954602 1954603 1954604 1954605 1954606
Blocks: 1946281
TreeView+ depends on / blocked
 
Reported: 2021-04-05 16:45 UTC by Guilherme de Almeida Suckevicz
Modified: 2024-02-08 16:50 UTC (History)
42 users (show)

Fixed In Version: Kernel 5.12
Doc Type: If docs needed, set a value
Doc Text:
A flaw memory leak in the Linux kernel webcam device functionality was found in the way user calls ioctl that triggers video_usercopy function. The highest threat from this vulnerability is to system availability.
Clone Of:
Environment:
Last Closed: 2022-12-03 18:33:18 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:7444 0 None None None 2022-11-08 09:09:15 UTC
Red Hat Product Errata RHSA-2022:7683 0 None None None 2022-11-08 10:08:30 UTC
Red Hat Product Errata RHSA-2024:0724 0 None None None 2024-02-07 16:33:07 UTC

Description Guilherme de Almeida Suckevicz 2021-04-05 16:45:10 UTC
An issue was discovered in the Linux kernel before 5.11.3 when a webcam device exists. video_usercopy in drivers/media/v4l2-core/v4l2-ioctl.c has a memory leak for large arguments.

Reference:
https://bugzilla.suse.com/show_bug.cgi?id=1184120

Upstream patch:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fb18802a338b36f675a388fc03d2aa504a0d0899

Comment 1 Guilherme de Almeida Suckevicz 2021-04-05 16:45:48 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1946280]

Comment 2 Justin M. Forbes 2021-04-05 21:27:13 UTC
This was fixed for Fedora with the 5.10.21 stable kernel updates.

Comment 4 Alex 2021-04-28 12:46:39 UTC
Mitigation:

To mitigate this issue, prevent the module v4l2-common from being loaded. Please see https://access.redhat.com/solutions/41278 for information on how to blacklist a kernel module to prevent it from loading automatically.

Comment 18 Carlos Soriano 2021-07-14 12:56:54 UTC
Moved all the BZs to V4L, which is maintained by Jarod Wilson

Comment 23 errata-xmlrpc 2022-11-08 09:09:12 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7444 https://access.redhat.com/errata/RHSA-2022:7444

Comment 24 errata-xmlrpc 2022-11-08 10:08:28 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7683 https://access.redhat.com/errata/RHSA-2022:7683

Comment 25 Product Security DevOps Team 2022-12-03 18:33:13 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-30002

Comment 29 errata-xmlrpc 2024-02-07 16:33:04 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2024:0724 https://access.redhat.com/errata/RHSA-2024:0724


Note You need to log in before you can comment on or make changes to this bug.