5.5medium
bridge: guard local VLAN-0 FDB helpers against NULL vlan group
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.12% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: bridge: guard local VLAN-0 FDB helpers against NULL vlan group When CONFIG_BRIDGE_VLAN_FILTERING is not set, br_vlan_group() and nbp_vlan_group() return NULL (br_private.h stub definitions). The BR_BOOLOPT_FDB_LOCAL_VLAN_0 toggle code is compiled unconditionally and reaches br_fdb_delete_locals_per_vlan_port() and br_fdb_insert_locals_per_vlan_port(), where the NULL vlan group pointer is dereferenced via list_for_each_entry(v, &vg->vlan_list, vlist). The observed crash is in the delete path, triggered when creating a bridge with IFLA_BR_MULTI_BOOLOPT containing BR_BOOLOPT_FDB_LOCAL_VLAN_0 via RTM_NEWLINK. The insert helper has the same bug pattern. Oops: general protection fault, probably for non-canonical address 0xdffffc0000000056: 0000 [#1] KASAN NOPTI KASAN: null-ptr-deref in range [0x00000000000002b0-0x00000000000002b7] RIP: 0010:br_fdb_delete_locals_per_vlan+0x2b9/0x310 Call Trace: br_fdb_toggle_local_vlan_0+0x452/0x4c0 br_toggle_fdb_local_vlan_0+0x31/0x80 net/bridge/br.c:276 br_boolopt_toggle net/bridge/br.c:313 br_boolopt_multi_toggle net/bridge/br.c:364 br_changelink net/bridge/br_netlink.c:1542 br_dev_newlink net/bridge/br_netlink.c:1575 Add NULL checks for the vlan group pointer in both helpers, returning early when there are no VLANs to iterate. This matches the existing pattern used by other bridge FDB functions such as br_fdb_add() and br_fdb_delete().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 21446c06b441b9c993870efae71aef4e9aa72ec7 before fb612d436ff0317659e45a91c25fd7d9516f5b1b, from 21446c06b441b9c993870efae71aef4e9aa72ec7 before ddf0ec2d600e7dad62b89692749534d7900a732a, from 21446c06b441b9c993870efae71aef4e9aa72ec7 before 1979645e1842cb7017525a61a0e0e0beb924d02a, 6.18 Not affected: before 6.18, from 6.18.24 up to 6.18.*, from 6.19.14 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.18 before 6.18.24, from 6.19 before 6.19.14, 7.0 | NVD |
Classification
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: bridge: guard local VLAN-0 FDB helpers against NULL vlan group When CONFIG_BRIDGE_VLAN_FILTERING is not set, br_vlan_group() and nbp_vlan_group() return NULL (br_private.h stub definitions). The BR_BOOLOPT_FDB_LOCAL_VLAN_0 toggle code is compiled unconditionally and reaches br_fdb_delete_locals_per_vlan_port() and br_fdb_insert_locals_per_vlan_port(), where the NULL vlan group pointer is dereferenced via list_for_each_entry(v, &vg->vlan_list, vlist). The observed crash is in the delete path, triggered when creating a bridge with IFLA_BR_MULTI_BOOLOPT containing BR_BOOLOPT_FDB_LOCAL_VLAN_0 via RTM_NEWLINK. The insert helper has the same bug pattern. Oops: general protection fault, probably for non-canonical address 0xdffffc0000000056: 0000 [#1] KASAN NOPTI KASAN: null-ptr-deref in range [0x00000000000002b0-0x00000000000002b7] RIP: 0010:br_fdb_delete_locals_per_vlan+0x2b9/0x310 Call Trace: br_fdb_toggle_local_vlan_0+0x452/0x4c0 br_toggle_fdb_local_vlan_0+0x31/0x80 net/bridge/br.c:276 br_boolopt_toggle net/bridge/br.c:313 br_boolopt_multi_toggle net/bridge/br.c:364 br_changelink net/bridge/br_netlink.c:1542 br_dev_newlink net/bridge/br_netlink.c:1575 Add NULL checks for the vlan group pointer in both helpers, returning early when there are no VLANs to iterate. This matches the existing pattern used by other bridge FDB functions such as br_fdb_add() and br_fdb_delete().
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: bridge: proteger los ayudantes FDB locales de VLAN-0 contra el grupo VLAN NULL Cuando CONFIG_BRIDGE_VLAN_FILTERING no está configurado, br_vlan_group() y nbp_vlan_group() devuelven NULL (definiciones de stub de br_private.h). El código de alternancia BR_BOOLOPT_FDB_LOCAL_VLAN_0 se compila incondicionalmente y alcanza br_fdb_delete_locals_per_vlan_port() y br_fdb_insert_locals_per_vlan_port(), donde el puntero de grupo VLAN NULL es desreferenciado a través de list_for_each_entry(v, &vg -> vlan_list, vlist). El fallo observado está en la ruta de eliminación, activado al crear un bridge con IFLA_BR_MULTI_BOOLOPT que contiene BR_BOOLOPT_FDB_LOCAL_VLAN_0 a través de RTM_NEWLINK. El ayudante de inserción tiene el mismo patrón de error. Oops: fallo de protección general, probablemente para dirección no canónica 0x dffffc0000000056: 0000 [#1] KASAN NOPTI KASAN: desreferencia de puntero nulo en el rango [0x 00000000000002b0-0x 00000000000002b7] RIP: 0010:br_fdb_delete_locals_per_vlan+0x2b9/0x310 Traza de Llamada: br_fdb_toggle_local_vlan_0+0x452/0x4c0 br_toggle_fdb_local_vlan_0+0x31/0x80 net/bridge/br.c:276 br_boolopt_toggle net/bridge/br.c:313 br_boolopt_multi_toggle net/bridge/br.c:364 br_changelink net/bridge/br_netlink.c:1542 br_dev_newlink net/bridge/br_netlink.c:1575 Añadir comprobaciones de NULL para el puntero de grupo VLAN en ambos ayudantes, regresando temprano cuando no hay VLANs para iterar. Esto coincide con el patrón existente utilizado por otras funciones FDB de bridge como br_fdb_add() y br_fdb_delete().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43100 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2026-43100 changed 2026-11-11 | Public domain |