Description
In the Linux kernel, the following vulnerability has been resolved:
bridge: switchdev: Fix memory leaks when changing VLAN protocol
The bridge driver can offload VLANs to the underlying hardware either
via switchdev or the 8021q driver. When the former is used, the VLAN is
marked in the bridge driver with the 'BR_VLFLAG_ADDED_BY_SWITCHDEV'
private flag.
To avoid the memory leaks mentioned in the cited commit, the bridge
driver will try to delete a VLAN via the 8021q driver if the VLAN is not
marked with the previously mentioned flag.
When the VLAN protocol of the bridge changes, switchdev drivers are
notified via the 'SWITCHDEV_ATTR_ID_BRIDGE_VLAN_PROTOCOL' attribute, but
the 8021q driver is also called to add the existing VLANs with the new
protocol and delete them with the old protocol.
In case the VLANs were offloaded via switchdev, the above behavior is
both redundant and buggy. Redundant because the VLANs are already
programmed in hardware and drivers that support VLAN protocol change
(currently only mlx5) change the protocol upon the switchdev attribute
notification. Buggy because the 8021q driver is called despite these
VLANs being marked with 'BR_VLFLAG_ADDED_BY_SWITCHDEV'. This leads to
memory leaks [1] when the VLANs are deleted.
Fix by not calling the 8021q driver for VLANs that were already
programmed via switchdev.
[1]
unreferenced object 0xffff8881f6771200 (size 256):
comm "ip", pid 446855, jiffies 4298238841 (age 55.240s)
hex dump (first 32 bytes):
00 00 7f 0e 83 88 ff ff 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<00000000012819ac>] vlan_vid_add+0x437/0x750
[<00000000f2281fad>] __br_vlan_set_proto+0x289/0x920
[<000000000632b56f>] br_changelink+0x3d6/0x13f0
[<0000000089d25f04>] __rtnl_newlink+0x8ae/0x14c0
[<00000000f6276baf>] rtnl_newlink+0x5f/0x90
[<00000000746dc902>] rtnetlink_rcv_msg+0x336/0xa00
[<000000001c2241c0>] netlink_rcv_skb+0x11d/0x340
[<0000000010588814>] netlink_unicast+0x438/0x710
[<00000000e1a4cd5c>] netlink_sendmsg+0x788/0xc40
[<00000000e8992d4e>] sock_sendmsg+0xb0/0xe0
[<00000000621b8f91>] ____sys_sendmsg+0x4ff/0x6d0
[<000000000ea26996>] ___sys_sendmsg+0x12e/0x1b0
[<00000000684f7e25>] __sys_sendmsg+0xab/0x130
[<000000004538b104>] do_syscall_64+0x3d/0x90
[<0000000091ed9678>] entry_SYSCALL_64_after_hwframe+0x46/0xb0
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | 5.0 | 5.10.157 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 6.0.10-1 | — |
| Debian 13 | linux | 6.0.10-1 | — |
| Debian 12 | linux | 6.0.10-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | 5.15.0-1014.16 | — |
| Ubuntu 24.04 LTS | linux-realtime +1 | No fix yet | — |
| Ubuntu 22.04 LTS | linux +1 | 5.15.0-67.74 | — |
| Ubuntu 22.04 LTS | linux-aws | 5.15.0-1031.35 | — |
| Ubuntu 22.04 LTS | linux-azure | 5.15.0-1034.41 | — |
| Ubuntu 22.04 LTS | linux-azure-fde | 5.15.0-1034.41.1 | — |
| Ubuntu 22.04 LTS | linux-gcp | 5.15.0-1030.37 | — |
| Ubuntu 22.04 LTS | linux-gke | 5.15.0-1028.33 | — |
| Ubuntu 22.04 LTS | linux-gkeop | 5.15.0-1016.21 | — |
| Ubuntu 22.04 LTS | linux-ibm | 5.15.0-1026.29 | — |
| Ubuntu 22.04 LTS | linux-intel-iotg | 5.15.0-1026.31 | — |
| Ubuntu 22.04 LTS | linux-kvm | 5.15.0-1029.34 | — |
| Ubuntu 22.04 LTS | linux-nvidia | 5.15.0-1023.23 | — |
| Ubuntu 22.04 LTS | linux-oracle | 5.15.0-1030.36 | — |
| Ubuntu 22.04 LTS | linux-raspi | 5.15.0-1025.27 | — |
| Ubuntu 22.04 LTS | linux-riscv +31 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-aws-5.15 | 5.15.0-1031.35~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-azure-5.15 | 5.15.0-1034.41~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-gcp-5.15 | 5.15.0-1030.37~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-gke +28 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-hwe-5.15 +1 | 5.15.0-67.74~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-intel-iotg-5.15 | 5.15.0-1026.31~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-nvidia-tegra-5.15 | 5.15.0-1014.14~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-oracle-5.15 | 5.15.0-1030.36~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-riscv-5.15 | 5.15.0-1030.34~20.04.1 | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-intel-iot-realtime | 5.15.0-1022.27 | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime | 5.15.0-1033.36 | — |
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | linux +10 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | linux-aws-5.4 +6 | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP5 | kernel-64kb +6 | 5.14.21-150500.55.110.1 | SUSE-SU-2025:02173-1 |
| SLES 15 SP5 | kernel-default-base | 5.14.21-150500.55.110.1.150500.6.51.3 | SUSE-SU-2025:02173-1 |
| SLES 15 SP4 | kernel-64kb +6 | 5.14.21-150400.24.167.1 | SUSE-SU-2025:02262-1 |
| SLES 15 SP4 | kernel-default-base | 5.14.21-150400.24.167.1.150400.24.84.1 | SUSE-SU-2025:02262-1 |
Show 11 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP5 | kernel-default-base | 5.14.21-150500.55.110.1.150500.6.51.3 | SUSE-SU-2025:02173-1 |
| SLES for SAP 15 SP5 | kernel-docs +4 | 5.14.21-150500.55.110.1 | SUSE-SU-2025:02173-1 |
| SLES for SAP 15 SP4 | kernel-default-base | 5.14.21-150400.24.167.1.150400.24.84.1 | SUSE-SU-2025:02262-1 |
| SLES for SAP 15 SP4 | kernel-docs +4 | 5.14.21-150400.24.167.1 | SUSE-SU-2025:02262-1 |
| SLE Micro 5.5 | kernel-default-base | 5.14.21-150500.55.110.1.150500.6.51.3 | SUSE-SU-2025:02173-1 |
| SLE Micro 5.5 | kernel-rt +1 | 5.14.21-150500.13.97.1 | SUSE-SU-2025:01966-1 |
| SLE Micro 5.5 | kernel-source +1 | 5.14.21-150500.55.110.1 | SUSE-SU-2025:02173-1 |
| SLE Micro 5.4 | kernel-default | 5.14.21-150400.24.167.1 | SUSE-SU-2025:02262-1 |
| SLE Micro 5.4 | kernel-default-base | 5.14.21-150400.24.167.1.150400.24.84.1 | SUSE-SU-2025:02262-1 |
| SLE Micro 5.4 | kernel-rt +1 | 5.14.21-150400.15.121.1 | SUSE-SU-2025:01918-1 |
| SLE Micro 5.3 | kernel-default | 5.14.21-150400.24.167.1 | SUSE-SU-2025:02262-1 |
| SLE Micro 5.3 | kernel-default-base | 5.14.21-150400.24.167.1.150400.24.84.1 | SUSE-SU-2025:02262-1 |
| SLE Micro 5.3 | kernel-rt +1 | 5.14.21-150400.15.121.1 | SUSE-SU-2025:01918-1 |
| SLE Live Patching 15 SP5 | kernel-default | 5.14.21-150500.55.110.1 | SUSE-SU-2025:02173-1 |
| SLE Live Patching 15 SP5 | kernel-livepatch-SLE15-SP5_Update_27 | 1-150500.11.7.1 | SUSE-SU-2025:02173-1 |
| SLE Live Patching 15 SP4 | kernel-default | 5.14.21-150400.24.167.1 | SUSE-SU-2025:02262-1 |
| SLE Live Patching 15 SP4 | kernel-livepatch-SLE15-SP4_Update_41 | 1-150400.9.3.1 | SUSE-SU-2025:02262-1 |
| SLE HPC 15 SP5 | kernel-64kb +5 | 5.14.21-150500.55.110.1 | SUSE-SU-2025:02173-1 |
| SLE HPC 15 SP5 | kernel-default-base | 5.14.21-150500.55.110.1.150500.6.51.3 | SUSE-SU-2025:02173-1 |
| SLE HPC 15 SP4 | kernel-64kb +5 | 5.14.21-150400.24.167.1 | SUSE-SU-2025:02262-1 |
| SLE HPC 15 SP4 | kernel-default-base | 5.14.21-150400.24.167.1.150400.24.84.1 | SUSE-SU-2025:02262-1 |
| SUSE Manager Server 4.3 | kernel-default-base | 5.14.21-150400.24.167.1.150400.24.84.1 | SUSE-SU-2025:02262-1 |
| SUSE Manager Server 4.3 | kernel-syms +3 | 5.14.21-150400.24.167.1 | SUSE-SU-2025:02262-1 |
| SUSE Manager Proxy 4.3 | kernel-default-base | 5.14.21-150400.24.167.1.150400.24.84.1 | SUSE-SU-2025:02262-1 |
| SUSE Manager Proxy 4.3 | kernel-syms +2 | 5.14.21-150400.24.167.1 | SUSE-SU-2025:02262-1 |
Advisories 4
- SUSE-SU-2025:02262-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:01918-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:02173-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:01966-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026