CVE-2026-43012

Source
https://cve.org/CVERecord?id=CVE-2026-43012
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-43012.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-43012
Downstream
Related
Published
2026-05-01T14:15:18.256Z
Modified
2026-07-15T01:49:08.757893934Z
Summary
net/mlx5: Fix switchdev mode rollback in case of failure
Details

In the Linux kernel, the following vulnerability has been resolved:

net/mlx5: Fix switchdev mode rollback in case of failure

If for some internal reason switchdev mode fails, we rollback to legacy mode, before this patch, rollback will unregister the uplink netdev and leave it unregistered causing the below kernel bug.

To fix this, we need to avoid netdev unregister by setting the proper rollback flag 'MLX5PRIVFLAGSSWITCHLEGACY' to indicate legacy mode.

devlink (431) used greatest stack depth: 11048 bytes left mlx5core 0000:00:03.0: E-Switch: Disable: mode(LEGACY), nvfs(0), \ necvfs(0), active vports(0) mlx5core 0000:00:03.0: E-Switch: Supported tc chains and prios offload mlx5core 0000:00:03.0: Loading uplink representor for vport 65535 mlx5core 0000:00:03.0: mlx5cmdouterr:816:(pid 456): \ QUERYHCACAP(0x100) opmod(0x0) failed, \ status bad parameter(0x3), syndrome (0x3a3846), err(-22) mlx5core 0000:00:03.0 enp0s3np0 (unregistered): Unloading uplink \ representor for vport 65535 ------------[ cut here ]------------ kernel BUG at net/core/dev.c:12070! Oops: invalid opcode: 0000 [#1] SMP NOPTI CPU: 2 UID: 0 PID: 456 Comm: devlink Not tainted 6.16.0-rc3+ \ #9 PREEMPT(voluntary) RIP: 0010:unregisternetdevicemanynotify+0x123/0xae0 ... Call Trace: [ 90.923094] unregisternetdevicequeue+0xad/0xf0 [ 90.923323] unregisternetdev+0x1c/0x40 [ 90.923522] mlx5evportrepunload+0x61/0xc6 [ 90.923736] eswoffloadsenable+0x8e6/0x920 [ 90.923947] mlx5eswitchenablelocked+0x349/0x430 [ 90.924182] ? ismpsupported+0x57/0xb0 [ 90.924376] mlx5devlinkeswitchmodeset+0x167/0x350 [ 90.924628] devlinknleswitchsetdoit+0x6f/0xf0 [ 90.924862] genlfamilyrcvmsgdoit+0xe8/0x140 [ 90.925088] genlrcv_msg+0x18b/0x290 [ 90.925269] ? __pfxdevlinknlpredoit+0x10/0x10 [ 90.925506] ? __pfxdevlinknl_eswitchsetdoit+0x10/0x10 [ 90.925766] ? __pfxdevlinknlpostdoit+0x10/0x10 [ 90.926001] ? __pfxgenlrcvmsg+0x10/0x10 [ 90.926206] netlinkrcvskb+0x52/0x100 [ 90.926393] genlrcv+0x28/0x40 [ 90.926557] netlinkunicast+0x27d/0x3d0 [ 90.926749] netlinksendmsg+0x1f7/0x430 [ 90.926942] __sys_sendto+0x213/0x220 [ 90.927127] ? __sys_recvmsg+0x6a/0xd0 [ 90.927312] __x64syssendto+0x24/0x30 [ 90.927504] dosyscall64+0x50/0x1c0 [ 90.927687] entrySYSCALL64afterhwframe+0x76/0x7e [ 90.927929] RIP: 0033:0x7f7d0363e047

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43012.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
de85624c623dbb5fdb3ae7b08b66894a072c0cc0
Fixed
2ebb13f3e8be0b61f72425b34cce60c8b6ad1891
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2a4f56fbcc473d8faeb29b73082df39efbe5893c
Fixed
e27153b2bd6e6699b544ac4dfa35d167bed5e642
Fixed
4363698838b7ec6e8d85b179495889aa7e522f91
Fixed
403186400a1a6166efe7031edc549c15fee4723f
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6.12.9
Fixed
6.12.81

Affected versions

v6.*
v6.12.10
v6.12.11
v6.12.12
v6.12.13
v6.12.14
v6.12.15
v6.12.16
v6.12.17
v6.12.18
v6.12.19
v6.12.20
v6.12.21
v6.12.22
v6.12.23
v6.12.24
v6.12.25
v6.12.26
v6.12.27
v6.12.28
v6.12.29
v6.12.30
v6.12.31
v6.12.32
v6.12.33
v6.12.34
v6.12.35
v6.12.36
v6.12.37
v6.12.38
v6.12.39
v6.12.40
v6.12.41
v6.12.42
v6.12.43
v6.12.44
v6.12.45
v6.12.46
v6.12.47
v6.12.48
v6.12.49
v6.12.50
v6.12.51
v6.12.52
v6.12.53
v6.12.54
v6.12.55
v6.12.56
v6.12.57
v6.12.58
v6.12.59
v6.12.60
v6.12.61
v6.12.62
v6.12.63
v6.12.64
v6.12.65
v6.12.66
v6.12.67
v6.12.68
v6.12.69
v6.12.70
v6.12.71
v6.12.72
v6.12.73
v6.12.74
v6.12.75
v6.12.76
v6.12.77
v6.12.78
v6.12.79
v6.12.80
v6.12.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-43012.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.12.81
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.22
Fixed
6.19.12

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-43012.json"