Bug 2192667 (CVE-2023-33203) - CVE-2023-33203 kernel: net: qcom/emac: race condition leading to use-after-free in emac_remove()
Summary: CVE-2023-33203 kernel: net: qcom/emac: race condition leading to use-after-fr...
Keywords:
Status: NEW
Alias: CVE-2023-33203
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2192669 2192672 2192673 2192674 2192675
Blocks: 2186214
TreeView+ depends on / blocked
 
Reported: 2023-05-02 17:04 UTC by Mauro Matteo Cascella
Modified: 2024-02-13 01:12 UTC (History)
45 users (show)

Fixed In Version: kernel 6.3-rc4
Doc Type: If docs needed, set a value
Doc Text:
A race condition vulnerability was found in the Linux kernel's Qualcomm EMAC Gigabit Ethernet Controller when the user physically removes the device before cleanup in the emac_remove function. This flaw can eventually result in a use-after-free issue, possibly leading to a system crash or other undefined behaviors.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2023:6835 0 None None None 2023-11-09 07:10:56 UTC
Red Hat Product Errata RHBA-2023:7268 0 None None None 2023-11-15 18:25:25 UTC
Red Hat Product Errata RHBA-2023:7328 0 None None None 2023-11-16 11:38:58 UTC
Red Hat Product Errata RHBA-2023:7338 0 None None None 2023-11-16 18:04:19 UTC
Red Hat Product Errata RHBA-2023:7343 0 None None None 2023-11-20 01:58:48 UTC
Red Hat Product Errata RHBA-2023:7346 0 None None None 2023-11-20 09:25:48 UTC
Red Hat Product Errata RHSA-2023:6583 0 None None None 2023-11-07 08:20:27 UTC
Red Hat Product Errata RHSA-2023:6901 0 None None None 2023-11-14 15:15:30 UTC
Red Hat Product Errata RHSA-2023:7077 0 None None None 2023-11-14 15:20:53 UTC
Red Hat Product Errata RHSA-2024:0412 0 None None None 2024-01-24 16:43:44 UTC
Red Hat Product Errata RHSA-2024:0575 0 None None None 2024-01-30 13:21:32 UTC

Description Mauro Matteo Cascella 2023-05-02 17:04:35 UTC
In emac_probe, &adpt->work_thread is bound with emac_work_thread. Then it will be started by timeout handler emac_tx_timeout or a IRQ handler emac_isr. If we remove the driver which will call emac_remove to make cleanup, there may be a unfinished work. This could lead to a use-after-free.

Upstream fix:
https://github.com/torvalds/linux/commit/6b6bc5b8bd2d

Comment 1 Mauro Matteo Cascella 2023-05-02 17:05:05 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2192669]

Comment 4 Justin M. Forbes 2023-05-02 21:08:48 UTC
This was fixed for Fedora with the 6.2.9 stable kernel updates.

Comment 5 hackerzheng666 2023-05-03 15:02:00 UTC
Here is the credit Information:

Zheng Wang(@xmzyshypnc), Zhuorao Yang(@A1ex), Yang Hu(@BlueSheep) and
Zong Cao(@P1umer)

Comment 6 Mauro Matteo Cascella 2023-06-19 15:03:42 UTC
CVE-2023-2483 was rejected as duplicate of CVE-2023-33203. See https://nvd.nist.gov/vuln/detail/CVE-2023-2483 for more details. Updating bug summary accordingly.

Comment 8 errata-xmlrpc 2023-11-07 08:20:21 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:6583 https://access.redhat.com/errata/RHSA-2023:6583

Comment 9 errata-xmlrpc 2023-11-14 15:15:26 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:6901 https://access.redhat.com/errata/RHSA-2023:6901

Comment 10 errata-xmlrpc 2023-11-14 15:20:49 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:7077 https://access.redhat.com/errata/RHSA-2023:7077

Comment 13 errata-xmlrpc 2024-01-24 16:43:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

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

Comment 14 errata-xmlrpc 2024-01-30 13:21:28 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

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


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