Skip to content
OpenAdvisories
Unscored CVE-2023-52578 EUVD-2023-57202GHSA-3jh7-wc4v-w78v

net: bridge: use DEV_STATS_INC()

Published Mar 2, 2024 · Updated May 11, 2026 · Assigned by Linux

Vendor: Linux Product: Linux Package: linux Package: linux Package: linux-allwinner-5.19 Package: linux-aws Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 Package: linux-aws-5.15 Package: linux-aws-5.19 Package: linux-aws-5.3 Package: linux-aws-5.4 Package: linux-aws-5.8 Package: linux-aws-6.2 Package: linux-aws-6.5 Package: linux-aws-fips Package: linux-aws-hwe Package: linux-azure Package: linux-azure-4.15 Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.15 Package: linux-azure-5.19 Package: linux-azure-5.3 Package: linux-azure-5.4 Package: linux-azure-5.8 Package: linux-azure-6.2 Package: linux-azure-6.5 Package: linux-azure-edge Package: linux-azure-fde Package: linux-azure-fde-5.19 Package: linux-azure-fde-6.2 Package: linux-azure-fips Package: linux-bluefield Package: linux-fips Package: linux-gcp Package: linux-gcp-4.15 Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.15 Package: linux-gcp-5.19 Package: linux-gcp-5.3 Package: linux-gcp-5.4 Package: linux-gcp-5.8 Package: linux-gcp-6.2 Package: linux-gcp-6.5 Package: linux-gcp-fips Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.15 Package: linux-gke-5.4 Package: linux-gkeop Package: linux-gkeop-5.15 Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.15 Package: linux-hwe-5.19 Package: linux-hwe-5.4 Package: linux-hwe-5.8 Package: linux-hwe-6.2 Package: linux-hwe-6.5 Package: linux-hwe-edge Package: linux-ibm Package: linux-ibm-5.15 Package: linux-ibm-5.4 Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-intel-iotg Package: linux-intel-iotg-5.15 Package: linux-iot Package: linux-kvm Package: linux-lowlatency Package: linux-lowlatency-hwe-5.15 Package: linux-lowlatency-hwe-5.19 Package: linux-lowlatency-hwe-6.2 Package: linux-lowlatency-hwe-6.5 Package: linux-lts-xenial Package: linux-nvidia Package: linux-nvidia-6.2 Package: linux-nvidia-6.5 Package: linux-nvidia-tegra Package: linux-nvidia-tegra-5.15 Package: linux-nvidia-tegra-igx Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.17 Package: linux-oem-5.6 Package: linux-oem-6.0 Package: linux-oem-6.1 Package: linux-oem-6.5 Package: linux-oracle Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.13 Package: linux-oracle-5.15 Package: linux-oracle-5.3 Package: linux-oracle-5.4 Package: linux-oracle-5.8 Package: linux-oracle-6.5 Package: linux-raspi Package: linux-raspi-5.4 Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.15 Package: linux-riscv-5.19 Package: linux-riscv-5.8 Package: linux-starfive-5.19 Package: linux-starfive-6.2 Package: linux-vmware Package: linux-xilinx-zynqmp Platform: Linux Ecosystem: Debian Ecosystem: Ubuntu

Description

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

net: bridge: use DEV_STATS_INC()

syzbot/KCSAN reported data-races in br_handle_frame_finish() [1]
This function can run from multiple cpus without mutual exclusion.

Adopt SMP safe DEV_STATS_INC() to update dev->stats fields.

Handles updates to dev->stats.tx_dropped while we are at it.

[1]
BUG: KCSAN: data-race in br_handle_frame_finish / br_handle_frame_finish

read-write to 0xffff8881374b2178 of 8 bytes by interrupt on cpu 1:
br_handle_frame_finish+0xd4f/0xef0 net/bridge/br_input.c:189
br_nf_hook_thresh+0x1ed/0x220
br_nf_pre_routing_finish_ipv6+0x50f/0x540
NF_HOOK include/linux/netfilter.h:304 [inline]
br_nf_pre_routing_ipv6+0x1e3/0x2a0 net/bridge/br_netfilter_ipv6.c:178
br_nf_pre_routing+0x526/0xba0 net/bridge/br_netfilter_hooks.c:508
nf_hook_entry_hookfn include/linux/netfilter.h:144 [inline]
nf_hook_bridge_pre net/bridge/br_input.c:272 [inline]
br_handle_frame+0x4c9/0x940 net/bridge/br_input.c:417
__netif_receive_skb_core+0xa8a/0x21e0 net/core/dev.c:5417
__netif_receive_skb_one_core net/core/dev.c:5521 [inline]
__netif_receive_skb+0x57/0x1b0 net/core/dev.c:5637
process_backlog+0x21f/0x380 net/core/dev.c:5965
__napi_poll+0x60/0x3b0 net/core/dev.c:6527
napi_poll net/core/dev.c:6594 [inline]
net_rx_action+0x32b/0x750 net/core/dev.c:6727
__do_softirq+0xc1/0x265 kernel/softirq.c:553
run_ksoftirqd+0x17/0x20 kernel/softirq.c:921
smpboot_thread_fn+0x30a/0x4a0 kernel/smpboot.c:164
kthread+0x1d7/0x210 kernel/kthread.c:388
ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304

read-write to 0xffff8881374b2178 of 8 bytes by interrupt on cpu 0:
br_handle_frame_finish+0xd4f/0xef0 net/bridge/br_input.c:189
br_nf_hook_thresh+0x1ed/0x220
br_nf_pre_routing_finish_ipv6+0x50f/0x540
NF_HOOK include/linux/netfilter.h:304 [inline]
br_nf_pre_routing_ipv6+0x1e3/0x2a0 net/bridge/br_netfilter_ipv6.c:178
br_nf_pre_routing+0x526/0xba0 net/bridge/br_netfilter_hooks.c:508
nf_hook_entry_hookfn include/linux/netfilter.h:144 [inline]
nf_hook_bridge_pre net/bridge/br_input.c:272 [inline]
br_handle_frame+0x4c9/0x940 net/bridge/br_input.c:417
__netif_receive_skb_core+0xa8a/0x21e0 net/core/dev.c:5417
__netif_receive_skb_one_core net/core/dev.c:5521 [inline]
__netif_receive_skb+0x57/0x1b0 net/core/dev.c:5637
process_backlog+0x21f/0x380 net/core/dev.c:5965
__napi_poll+0x60/0x3b0 net/core/dev.c:6527
napi_poll net/core/dev.c:6594 [inline]
net_rx_action+0x32b/0x750 net/core/dev.c:6727
__do_softirq+0xc1/0x265 kernel/softirq.c:553
do_softirq+0x5e/0x90 kernel/softirq.c:454
__local_bh_enable_ip+0x64/0x70 kernel/softirq.c:381
__raw_spin_unlock_bh include/linux/spinlock_api_smp.h:167 [inline]
_raw_spin_unlock_bh+0x36/0x40 kernel/locking/spinlock.c:210
spin_unlock_bh include/linux/spinlock.h:396 [inline]
batadv_tt_local_purge+0x1a8/0x1f0 net/batman-adv/translation-table.c:1356
batadv_tt_purge+0x2b/0x630 net/batman-adv/translation-table.c:3560
process_one_work kernel/workqueue.c:2630 [inline]
process_scheduled_works+0x5b8/0xa30 kernel/workqueue.c:2703
worker_thread+0x525/0x730 kernel/workqueue.c:2784
kthread+0x1d7/0x210 kernel/kthread.c:388
ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304

value changed: 0x00000000000d7190 -> 0x00000000000d7191

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 14848 Comm: kworker/u4:11 Not tainted 6.6.0-rc1-syzkaller-00236-gad8a69f361b9 #0

Affected products

VendorProductAffectedFixed
Linux Linux 2.6.17 4.19.296

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.

ReleasePackageFixed inAdvisory
Debian 14 linux 6.5.6-1 —
Debian 13 linux 6.5.6-1 —
Debian 12 linux 6.1.64-1 —
ReleasePackageFixed inAdvisory
Ubuntu Nvidia-BlueField 22.04 LTS linux-bluefield 5.15.0-1035.37 —
Ubuntu 24.04 LTS linux-raspi-realtime No fix yet —
Ubuntu 22.04 LTS linux +1 5.15.0-94.104 —
Ubuntu 22.04 LTS linux-aws 5.15.0-1053.58 —
Ubuntu 22.04 LTS linux-azure 5.15.0-1056.64 —
Ubuntu 22.04 LTS linux-azure-fde 5.15.0-1056.64.1 —
Ubuntu 22.04 LTS linux-gcp 5.15.0-1051.59 —
Ubuntu 22.04 LTS linux-gke +1 5.15.0-1050.55 —
Ubuntu 22.04 LTS linux-gkeop 5.15.0-1036.42 —
Ubuntu 22.04 LTS linux-ibm +1 5.15.0-1046.49 —
Ubuntu 22.04 LTS linux-intel-iotg 5.15.0-1047.53 —
Ubuntu 22.04 LTS linux-nvidia 5.15.0-1044.44 —
Ubuntu 22.04 LTS linux-nvidia-6.5 6.5.0-1014.14 —
Ubuntu 22.04 LTS linux-nvidia-tegra 5.15.0-1022.22 —
Ubuntu 22.04 LTS linux-nvidia-tegra-igx 5.15.0-1009.9 —
Ubuntu 22.04 LTS linux-oracle 5.15.0-1051.57 —
Ubuntu 22.04 LTS linux-riscv +28 No fix yet —
Ubuntu 22.04 LTS linux-xilinx-zynqmp 5.15.0-1027.31 —
Ubuntu 20.04 LTS linux 5.4.0-171.189 —
Ubuntu 20.04 LTS linux-aws 5.4.0-1118.128 —
Ubuntu 20.04 LTS linux-aws-5.15 5.15.0-1053.58~20.04.1 —
Ubuntu 20.04 LTS linux-azure 5.4.0-1123.130 —
Ubuntu 20.04 LTS linux-azure-5.15 5.15.0-1056.64~20.04.1 —
Ubuntu 20.04 LTS linux-bluefield 5.4.0-1078.84 —
Ubuntu 20.04 LTS linux-gcp 5.4.0-1122.131 —
Ubuntu 20.04 LTS linux-gcp-5.15 5.15.0-1051.59~20.04.1 —
Ubuntu 20.04 LTS linux-gke +26 No fix yet —
Ubuntu 20.04 LTS linux-gkeop 5.4.0-1085.89 —
Ubuntu 20.04 LTS linux-gkeop-5.15 5.15.0-1036.42~20.04.1 —
Ubuntu 20.04 LTS linux-hwe-5.15 +1 5.15.0-94.104~20.04.1 —
Ubuntu 20.04 LTS linux-ibm 5.4.0-1065.70 —
Ubuntu 20.04 LTS linux-ibm-5.15 5.15.0-1046.49~20.04.1 —
Ubuntu 20.04 LTS linux-intel-iotg-5.15 5.15.0-1048.54~20.04.1 —
Ubuntu 20.04 LTS linux-iot 5.4.0-1030.31 —
Ubuntu 20.04 LTS linux-kvm 5.4.0-1106.113 —
Ubuntu 20.04 LTS linux-nvidia-tegra-5.15 5.15.0-1022.22~20.04.1 —
Ubuntu 20.04 LTS linux-oracle 5.4.0-1117.126 —
Ubuntu 20.04 LTS linux-oracle-5.15 5.15.0-1051.57~20.04.1 —
Ubuntu 20.04 LTS linux-raspi 5.4.0-1102.114 —
Ubuntu 20.04 LTS linux-riscv-5.15 5.15.0-1049.53~20.04.2 —
Ubuntu 20.04 LTS linux-xilinx-zynqmp 5.4.0-1037.41 —
Ubuntu 18.04 LTS linux-gcp +14 No fix yet —
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Ubuntu Pro Realtime 22.04 LTS linux-intel-iot-realtime 5.15.0-1046.48 —
Ubuntu Pro Realtime 22.04 LTS linux-realtime 5.15.0-1054.60 —
Ubuntu Pro FIPS 20.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS 18.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS 16.04 LTS linux-fips No fix yet —
Ubuntu Pro FIPS-updates 22.04 LTS linux-aws-fips 5.15.0-1053.58+fips1 —
Ubuntu Pro FIPS-updates 22.04 LTS linux-fips 5.15.0-94.104+fips1 —
Ubuntu Pro FIPS-updates 22.04 LTS linux-gcp-fips 5.15.0-1055.63+fips2 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-aws-fips 5.4.0-1118.128+fips1 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-azure-fips 5.4.0-1123.130+fips1 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-fips 5.4.0-1092.102 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-gcp-fips 5.4.0-1122.131+fips1 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-aws-fips 4.15.0-2113.119 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-azure-fips 4.15.0-2092.98 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-fips 4.15.0-1129.140 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-gcp-fips 4.15.0-2076.81 —
Ubuntu Pro FIPS-updates 16.04 LTS linux-fips 4.4.0-1107.114 —
Ubuntu Pro FIPS-preview 22.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro 18.04 LTS linux 4.15.0-231.243 USN-7121-1
Ubuntu Pro 18.04 LTS linux-aws 4.15.0-1175.188 USN-7121-1
Ubuntu Pro 18.04 LTS linux-aws-5.4 5.4.0-1118.128~18.04.1 —
Ubuntu Pro 18.04 LTS linux-azure-4.15 4.15.0-1183.198 USN-7121-1
Ubuntu Pro 18.04 LTS linux-azure-5.4 5.4.0-1123.130~18.04.1 —
Ubuntu Pro 18.04 LTS linux-gcp-4.15 4.15.0-1168.185 USN-7121-1
Ubuntu Pro 18.04 LTS linux-gcp-5.4 5.4.0-1122.131~18.04.1 —
Ubuntu Pro 18.04 LTS linux-hwe-5.4 5.4.0-171.189~18.04.1 —
Ubuntu Pro 18.04 LTS linux-ibm-5.4 5.4.0-1065.70~18.04.1 —
Ubuntu Pro 18.04 LTS linux-kvm 4.15.0-1158.163 USN-7121-1
Ubuntu Pro 18.04 LTS linux-oracle 4.15.0-1137.148 USN-7121-1
Ubuntu Pro 18.04 LTS linux-oracle-5.4 5.4.0-1117.126~18.04.1 —
Ubuntu Pro 18.04 LTS linux-raspi-5.4 5.4.0-1102.114~18.04.1 —
Ubuntu Pro 16.04 LTS linux 4.4.0-261.295 USN-7148-1
Ubuntu Pro 16.04 LTS linux-aws 4.4.0-1176.191 USN-7148-1
Ubuntu Pro 16.04 LTS linux-aws-hwe 4.15.0-1175.188~16.04.1 USN-7121-1
Ubuntu Pro 16.04 LTS linux-azure 4.15.0-1183.198~16.04.1 USN-7121-1
Ubuntu Pro 16.04 LTS linux-gcp 4.15.0-1168.185~16.04.1 USN-7121-1
Ubuntu Pro 16.04 LTS linux-hwe 4.15.0-231.243~16.04.1 USN-7121-1
Ubuntu Pro 16.04 LTS linux-kvm 4.4.0-1139.149 USN-7148-1
Ubuntu Pro 16.04 LTS linux-oracle 4.15.0-1137.148~16.04.1 USN-7121-3
Ubuntu Pro 14.04 LTS linux No fix yet —
Ubuntu Pro 14.04 LTS linux-aws 4.4.0-1138.144 USN-7148-1
Ubuntu Pro 14.04 LTS linux-azure 4.15.0-1183.198~14.04.1 USN-7121-2
Ubuntu Pro 14.04 LTS linux-lts-xenial 4.4.0-261.295~14.04.1 USN-7148-1
ReleasePackageFixed inAdvisory
RHEL 9 bpftool 7.3.0-427.13.1.el9_4 RHSA-2024:2394
RHEL 9 rv +64 5.14.0-427.13.1.el9_4 RHSA-2024:2394
RHEL 8 kernel-rt +12 4.18.0-553.5.1.rt7.346.el8_10 RHSA-2024:3627
RHEL 8 perf +26 4.18.0-553.5.1.el8_10 RHSA-2024:3618
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhev Hypervisor 4 perf +2 4.18.0-372.105.1.el8_6 RHSA-2024:3462
RHEL 9.2 EUS bpftool 7.0.0-284.75.1.el9_2 RHSA-2024:4823
RHEL 9.2 EUS kernel-rt +14 5.14.0-284.75.1.rt14.360.el9_2 RHSA-2024:4831
RHEL 9.2 EUS perf +48 5.14.0-284.75.1.el9_2 RHSA-2024:4823
RHEL 8.8 EUS perf +26 4.18.0-477.58.1.el8_8 RHSA-2024:3810
RHEL 8.6 EUS perf +26 4.18.0-372.105.1.el8_6 RHSA-2024:3462
RHEL 8.4 TUS kernel-rt +12 4.18.0-305.131.1.rt7.207.el8_4 RHSA-2024:3530
RHEL 8.4 TUS perf +17 4.18.0-305.131.1.el8_4 RHSA-2024:3529
RHEL 8.4 E4S perf +18 4.18.0-305.131.1.el8_4 RHSA-2024:3529
RHEL 8.4 AUS perf +17 4.18.0-305.131.1.el8_4 RHSA-2024:3529
RHEL 8.2 AUS perf +17 4.18.0-193.135.1.el8_2 RHSA-2024:3528

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 bpftool 7.3.0-427.13.1.el9_4 ALSA-2024:2394
AlmaLinux 9 rv +60 5.14.0-427.13.1.el9_4 ALSA-2024:2394
AlmaLinux 8 kernel-rt +11 4.18.0-553.5.1.rt7.346.el8_10 ALSA-2024:3627
AlmaLinux 8 perf +24 4.18.0-553.5.1.el8_10 ALSA-2024:3618

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 kernel 4.18.0-553.5.1.el8_10 RLSA-2024:3618
Rocky Linux 8 kernel-rt 4.18.0-553.5.1.rt7.346.el8_10 RLSA-2024:3627

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 kernel-livepatch-6.1.56-82.125 1.0-0.amzn2023 ALAS2023-2023-385
Amazon Linux 2023 perf +13 6.1.56-82.125.amzn2023 ALAS2023-2023-385
Amazon Linux 2 kernel-livepatch-4.14.348-265.562 1.0-0.amzn2 ALAS2-2024-2581
Amazon Linux 2 perf +8 4.14.348-265.562.amzn2 ALAS2-2024-2581

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 bpftool 7.3.0-427.13.1.el9_4 ELSA-2024-2394
Oracle Linux 9 rv +27 5.14.0-427.13.1.el9_4 ELSA-2024-2394
Oracle Linux 8 perf +19 4.18.0-553.5.1.el8_10 ELSA-2024-3618

Advisories 25

References