CVE-2022-49907 json
net: mdio: fix undefined behavior in bit shift for __mdiobus_register
published 2025-05-01 18 mo ago modified 2026-11-05 3 d ago also EUVD-2025-12868
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 13%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
net: mdio: fix undefined behavior in bit shift for __mdiobus_register
Shifting signed 32-bit value by 31 bits is undefined, so changing significant bit to unsigned. The UBSAN warning calltrace like below:
UBSAN: shift-out-of-bounds in drivers/net/phy/mdio_bus.c:586:27 left shift of 1 by 31 places cannot be represented in type 'int' Call Trace: <TASK> dump_stack_lvl+0x7d/0xa5 dump_stack+0x15/0x1b ubsan_epilogue+0xe/0x4e __ubsan_handle_shift_out_of_bounds+0x1e7/0x20c __mdiobus_register+0x49d/0x4e0 fixed_mdio_bus_init+0xd8/0x12d do_one_initcall+0x76/0x430 kernel_init_freeable+0x3b3/0x422 kernel_init+0x24/0x1e0 ret_from_fork+0x1f/0x30 </TASK>
Patch / fix
- Linux Linux 4.9.333, 4.14.299, 4.19.265, 5.4.224, 5.10.154, 5.15.78, 6.0.8, 6.1
- linux Debian 14, Debian 13, Debian 12 6.0.8-1
debian advisories DEBIAN-CVE-2022-49907
- linux Ubuntu 18.04 LTS 4.15.0-206.217
- linux Ubuntu 20.04 LTS 5.4.0-139.156
- linux Ubuntu 22.04 LTS 5.15.0-60.66
- linux-aws Ubuntu 18.04 LTS 4.15.0-1151.164
- linux-aws Ubuntu 20.04 LTS 5.4.0-1096.104
- linux-aws Ubuntu 22.04 LTS 5.15.0-1030.34
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1100.109
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1029.36
ubuntu advisories UBUNTU-CVE-2022-49907
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-syms SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 4.12.14-122.261.1
- kernel-source SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 4.12.14-122.261.1
- kernel-default SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS, SLE Live Patching 12 SP5 4.12.14-122.261.1
- kgraft-patch-SLE12-SP5_Update_69 SLE Live Patching 12 SP5 1-8.3.1
suse advisories SUSE-SU-2025:01983-1
- git.kernel.org/stable/c/20ed01a7b9af6e6a3c33761eebbb710ea6dd49b7 commit
- git.kernel.org/stable/c/7006176a3c863e3e353ce1b8a349ef5bb1b9320e commit
- git.kernel.org/stable/c/a3fafc974be37319679f36dc4e7cca7db1e02973 commit
- git.kernel.org/stable/c/4954b5359eb141499492fadfab891e28905509e2 commit
- git.kernel.org/stable/c/634f066d02bdb22a26da7deb0c7617ab1a65fc9d commit
- git.kernel.org/stable/c/985a88bf0b27193522bba7856b1763f428cef19d commit
- git.kernel.org/stable/c/6ce6f8f8f6316da6f92afe7490bc2f0b654d68e0 commit
- git.kernel.org/stable/c/40e4eb324c59e11fcb927aa46742d28aba6ecb8a commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-49907 updated cvss 1.9
kernel: net: mdio: fix undefined behavior in bit shift for __mdiobus_register
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 moreaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3 d ago
Exploit prediction
0.23% chance of exploitation in the next 30 days, higher than 13% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Technology feeds
References
-
git.kernel.org
/stable/c/20ed01a7b9af6e6a3c33761eebbb710ea6dd49b7
patch
-
git.kernel.org
/stable/c/7006176a3c863e3e353ce1b8a349ef5bb1b9320e
patch
-
git.kernel.org
/stable/c/a3fafc974be37319679f36dc4e7cca7db1e02973
patch
-
git.kernel.org
/stable/c/4954b5359eb141499492fadfab891e28905509e2
patch
-
git.kernel.org
/stable/c/634f066d02bdb22a26da7deb0c7617ab1a65fc9d
patch
-
git.kernel.org
/stable/c/985a88bf0b27193522bba7856b1763f428cef19d
patch
-
git.kernel.org
/stable/c/6ce6f8f8f6316da6f92afe7490bc2f0b654d68e0
patch
-
git.kernel.org
/stable/c/40e4eb324c59e11fcb927aa46742d28aba6ecb8a
patch
Sources
- CVE List CVE-2022-49907
- NVD CVE-2022-49907
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.