Bug 2375305 (CVE-2025-38086) - CVE-2025-38086 kernel: net: ch9200: fix uninitialised access during mii_nway_restart
Summary: CVE-2025-38086 kernel: net: ch9200: fix uninitialised access during mii_nway_...
Keywords:
Status: NEW
Alias: CVE-2025-38086
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-28 08:01 UTC by OSIDB Bzimport
Modified: 2025-10-06 13:40 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2025:11540 0 None None None 2025-07-22 15:37:05 UTC
Red Hat Product Errata RHSA-2025:11455 0 None None None 2025-07-21 11:52:44 UTC
Red Hat Product Errata RHSA-2025:11456 0 None None None 2025-07-21 11:28:12 UTC
Red Hat Product Errata RHSA-2025:11861 0 None None None 2025-07-28 10:05:06 UTC
Red Hat Product Errata RHSA-2025:12662 0 None None None 2025-08-04 09:20:56 UTC
Red Hat Product Errata RHSA-2025:13633 0 None None None 2025-08-11 14:17:58 UTC
Red Hat Product Errata RHSA-2025:13776 0 None None None 2025-08-13 02:41:39 UTC
Red Hat Product Errata RHSA-2025:13781 0 None None None 2025-08-13 09:36:34 UTC
Red Hat Product Errata RHSA-2025:13805 0 None None None 2025-08-13 15:26:26 UTC
Red Hat Product Errata RHSA-2025:13946 0 None None None 2025-08-18 01:38:49 UTC
Red Hat Product Errata RHSA-2025:14054 0 None None None 2025-08-19 00:18:38 UTC
Red Hat Product Errata RHSA-2025:14094 0 None None None 2025-08-19 13:17:00 UTC
Red Hat Product Errata RHSA-2025:14136 0 None None None 2025-08-20 08:08:37 UTC
Red Hat Product Errata RHSA-2025:14418 0 None None None 2025-08-25 01:53:49 UTC

Description OSIDB Bzimport 2025-06-28 08:01:16 UTC
In the Linux kernel, the following vulnerability has been resolved:

net: ch9200: fix uninitialised access during mii_nway_restart

In mii_nway_restart() the code attempts to call
mii->mdio_read which is ch9200_mdio_read(). ch9200_mdio_read()
utilises a local buffer called "buff", which is initialised
with control_read(). However "buff" is conditionally
initialised inside control_read():

        if (err == size) {
                memcpy(data, buf, size);
        }

If the condition of "err == size" is not met, then
"buff" remains uninitialised. Once this happens the
uninitialised "buff" is accessed and returned during
ch9200_mdio_read():

        return (buff[0] | buff[1] << 8);

The problem stems from the fact that ch9200_mdio_read()
ignores the return value of control_read(), leading to
uinit-access of "buff".

To fix this we should check the return value of
control_read() and return early on error.

Comment 1 Avinash Hanwate 2025-06-30 02:41:34 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025062801-CVE-2025-38086-783b@gregkh/T

Comment 4 errata-xmlrpc 2025-07-21 11:28:01 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:11456 https://access.redhat.com/errata/RHSA-2025:11456

Comment 5 errata-xmlrpc 2025-07-21 11:52:43 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:11455 https://access.redhat.com/errata/RHSA-2025:11455

Comment 6 errata-xmlrpc 2025-07-28 10:05:05 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:11861 https://access.redhat.com/errata/RHSA-2025:11861

Comment 8 errata-xmlrpc 2025-08-04 09:20:55 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2025:12662 https://access.redhat.com/errata/RHSA-2025:12662

Comment 9 errata-xmlrpc 2025-08-11 14:17:57 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2025:13633 https://access.redhat.com/errata/RHSA-2025:13633

Comment 10 errata-xmlrpc 2025-08-13 02:41:38 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service

Via RHSA-2025:13776 https://access.redhat.com/errata/RHSA-2025:13776

Comment 11 errata-xmlrpc 2025-08-13 09:36:33 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2025:13781 https://access.redhat.com/errata/RHSA-2025:13781

Comment 12 errata-xmlrpc 2025-08-13 15:26:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On

Via RHSA-2025:13805 https://access.redhat.com/errata/RHSA-2025:13805

Comment 13 errata-xmlrpc 2025-08-18 01:38:48 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2025:13946 https://access.redhat.com/errata/RHSA-2025:13946

Comment 14 errata-xmlrpc 2025-08-19 00:18:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2025:14054 https://access.redhat.com/errata/RHSA-2025:14054

Comment 15 errata-xmlrpc 2025-08-19 13:16:59 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2025:14094 https://access.redhat.com/errata/RHSA-2025:14094

Comment 16 errata-xmlrpc 2025-08-20 08:08:36 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support

Via RHSA-2025:14136 https://access.redhat.com/errata/RHSA-2025:14136

Comment 17 errata-xmlrpc 2025-08-25 01:53:48 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2025:14418 https://access.redhat.com/errata/RHSA-2025:14418


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