Bug 1985353 (CVE-2021-37159) - CVE-2021-37159 kernel: use-after-free in hso_free_net_device() in drivers/net/usb/hso.c
Summary: CVE-2021-37159 kernel: use-after-free in hso_free_net_device() in drivers/net...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-37159
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: 1985354 1986487 1986488 1986489 1986490 1986491
Blocks: 1985355
TreeView+ depends on / blocked
 
Reported: 2021-07-23 13:40 UTC by Guilherme de Almeida Suckevicz
Modified: 2023-05-12 19:42 UTC (History)
41 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw use-after-free in the Linux kernel USB High Speed Mobile Devices functionality was found in the way user detaches USB device. A local user could use this flaw to crash the system or escalate their privileges on the system.
Clone Of:
Environment:
Last Closed: 2022-05-11 07:46:01 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2022:2229 0 None None None 2022-05-12 11:26:21 UTC
Red Hat Product Errata RHBA-2022:4630 0 None None None 2022-05-18 11:46:07 UTC
Red Hat Product Errata RHBA-2022:4693 0 None None None 2022-05-19 05:10:34 UTC
Red Hat Product Errata RHBA-2022:4969 0 None None None 2022-06-08 18:39:36 UTC
Red Hat Product Errata RHBA-2022:5088 0 None None None 2022-06-16 11:22:53 UTC
Red Hat Product Errata RHSA-2022:1975 0 None None None 2022-05-10 14:39:08 UTC
Red Hat Product Errata RHSA-2022:1988 0 None None None 2022-05-10 14:44:56 UTC

Description Guilherme de Almeida Suckevicz 2021-07-23 13:40:14 UTC
hso_free_net_device in drivers/net/usb/hso.c in the Linux kernel through 5.13.4 calls unregister_netdev without checking for the NETREG_REGISTERED state, leading to a use-after-free and a double free.

Reference:
https://www.spinics.net/lists/linux-usb/msg202228.html

Comment 1 Guilherme de Almeida Suckevicz 2021-07-23 13:41:33 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1985354]

Comment 5 Justin M. Forbes 2021-09-08 15:13:18 UTC
This was fixed for Fedora with the 5.13.6 stable kernel updates.

Comment 7 errata-xmlrpc 2022-05-10 14:39:05 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 8 errata-xmlrpc 2022-05-10 14:44:53 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 9 Product Security DevOps Team 2022-05-11 07:45:57 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-37159


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