CVE-2022-49667 json
net: bonding: fix use-after-free after 802.3ad slave unbind
published 2025-02-26 20 mo ago modified 2026-08-05 3 mo ago also EUVD-2022-54566
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 21%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
net: bonding: fix use-after-free after 802.3ad slave unbind
commit 0622cab0341c ("bonding: fix 802.3ad aggregator reselection"), resolve case, when there is several aggregation groups in the same bond. bond_3ad_unbind_slave will invalidate (clear) aggregator when __agg_active_ports return zero. So, ad_clear_agg can be executed even, when num_of_ports!=0. Than bond_3ad_unbind_slave can be executed again for, previously cleared aggregator. NOTE: at this time bond_3ad_unbind_slave will not update slave ports list, because lag_ports==NULL. So, here we got slave ports, pointing to freed aggregator memory.
Fix with checking actual number of ports in group (as was before commit 0622cab0341c ("bonding: fix 802.3ad aggregator reselection") ), before ad_clear_agg().
The KASAN logs are as follows:
[ 767.617392] ================================================================== [ 767.630776] BUG: KASAN: use-after-free in bond_3ad_state_machine_handler+0x13dc/0x1470 [ 767.638764] Read of size 2 at addr ffff00011ba9d430 by task kworker/u8:7/767 [ 767.647361] CPU: 3 PID: 767 Comm: kworker/u8:7 Tainted: G O 5.15.11 #15 [ 767.655329] Hardware name: DNI AmazonGo1 A7040 board (DT) [ 767.660760] Workqueue: lacp_1 bond_3ad_state_machine_handler [ 767.666468] Call trace: [ 767.668930] dump_backtrace+0x0/0x2d0 [ 767.672625] show_stack+0x24/0x30 [ 767.675965] dump_stack_lvl+0x68/0x84 [ 767.679659] print_address_description.constprop.0+0x74/0x2b8 [ 767.685451] kasan_report+0x1f0/0x260 [ 767.689148] __asan_load2+0x94/0xd0 [ 767.692667] bond_3ad_state_machine_handler+0x13dc/0x1470
Patch / fix
- Linux Linux 4.9.322, 4.14.287, 4.19.251, 5.4.204, 5.10.129, 5.15.53, 5.18.10, 5.19
- linux Debian 14, Debian 13, Debian 12 5.18.14-1
debian advisories DEBIAN-CVE-2022-49667
- linux Ubuntu 18.04 LTS 4.15.0-194.205
- linux Ubuntu 20.04 LTS 5.4.0-128.144
- linux Ubuntu 22.04 LTS 5.15.0-48.54
- linux-aws Ubuntu 18.04 LTS 4.15.0-1142.154
- linux-aws Ubuntu 20.04 LTS 5.4.0-1086.93
- linux-aws Ubuntu 22.04 LTS 5.15.0-1020.24
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1090.98
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1018.24
ubuntu advisories UBUNTU-CVE-2022-49667
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-rt RHEL 9.0 E4S 5.14.0-70.163.1.rt21.235.el9_0
- kernel-rt-kvm RHEL 9.0 E4S 5.14.0-70.163.1.rt21.235.el9_0
- kernel-rt-core RHEL 9.0 E4S 5.14.0-70.163.1.rt21.235.el9_0
- kernel-rt-modules RHEL 9.0 E4S 5.14.0-70.163.1.rt21.235.el9_0
- kernel-rt-debug-kvm RHEL 9.0 E4S 5.14.0-70.163.1.rt21.235.el9_0
- kernel-rt-debug-core RHEL 9.0 E4S 5.14.0-70.163.1.rt21.235.el9_0
- kernel-rt-debug-modules RHEL 9.0 E4S 5.14.0-70.163.1.rt21.235.el9_0
- kernel-rt-modules-extra RHEL 9.0 E4S 5.14.0-70.163.1.rt21.235.el9_0
red hat advisories RHSA-2026:1495RHSA-2026:1494
- kernel-64kb SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS, SLE High Performance Computing 15 SP5-ESPOS 5.14.21-150500.55.100.1
- kernel-syms SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS +1 more 5.14.21-150500.55.100.1
- kernel-source SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Micro 5.5 +2 more 5.14.21-150500.55.100.1
- kernel-default SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Micro 5.5 +3 more 5.14.21-150500.55.100.1
- kernel-obs-build SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS +1 more 5.14.21-150500.55.100.1
- kernel-default-base SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Micro 5.5 +2 more 5.14.21-150500.55.100.1.150500.6.47.1
- kernel-rt SLE Micro 5.4, SLE Micro 5.3 5.14.21-150400.15.115.1
- kernel-source-rt SLE Micro 5.4, SLE Micro 5.3 5.14.21-150400.15.115.1
suse advisories SUSE-SU-2025:1293-1SUSE-SU-2025:1241-1SUSE-SU-2025:1183-1SUSE-SU-2025:1176-1SUSE-SU-2025:1027-1
- git.kernel.org/stable/c/a853b7a3a9fd1d74a4ccdd9cd73512b7dace2f1e commit
- git.kernel.org/stable/c/b90ac60303063a43e17dd4aec159067599d255e6 commit
- git.kernel.org/stable/c/f162f7c348fa2a5555bafdb5cc890b89b221e69c commit
- git.kernel.org/stable/c/893825289ba840afd86bfffcb6f7f363c73efff8 commit
- git.kernel.org/stable/c/63b2fe509f69b90168a75e04e14573dccf7984e6 commit
- git.kernel.org/stable/c/ef0af7d08d26c5333ff4944a559279464edf6f15 commit
- git.kernel.org/stable/c/2765749def4765c5052a4c66445cf4c96fcccdbc commit
- git.kernel.org/stable/c/050133e1aa2cb49bb17be847d48a4431598ef562 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-49667 updated cvss 7.0
kernel: net: bonding: fix use-after-free after 802.3ad slave unbind
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 moreaffected: workaround, no fix planned “To mitigate this issue, prevent module bonding from being loaded. Please see https://access.redhat.com/solutions/41278 for how to blacklist a kernel module to prevent it from loading automatically.”
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 moreaffected: workaround, no fix available “To mitigate this issue, prevent module bonding from being loaded. Please see https://access.redhat.com/solutions/41278 for how to blacklist a kernel module to prevent it from loading automatically.”
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 moreaffected: workaround, no fix planned “To mitigate this issue, prevent module bonding from being loaded. Please see https://access.redhat.com/solutions/41278 for how to blacklist a kernel module to prevent it from loading automatically.”
-
Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 moreaffected: workaround, no fix available “To mitigate this issue, prevent module bonding from being loaded. Please see https://access.redhat.com/solutions/41278 for how to blacklist a kernel module to prevent it from loading automatically.”
-
Red Hat Enterprise Linux AppStream E4S (v.9.0) perf 5.14.0-70.163.1.el9_0, kernel-devel-matched 5.14.0-70.163.1.el9_0, kernel-debug-devel-matched 5.14.0-70.163.1.el9_0, kernel-debuginfo-common-s390x 5.14.0-70.163.1.el9_0, kernel-zfcpdump-devel-matched 5.14.0-70.163.1.el9_0, kernel-debuginfo-common-x86_64 5.14.0-70.163.1.el9_0, +2 more Red Hat Enterprise Linux BaseOS E4S (v.9.0) kernel 5.14.0-70.163.1.el9_0, bpftool 5.14.0-70.163.1.el9_0, kernel-core 5.14.0-70.163.1.el9_0, kernel-tools 5.14.0-70.163.1.el9_0, python3-perf 5.14.0-70.163.1.el9_0, kernel-modules 5.14.0-70.163.1.el9_0, +14 morefixed: vendor fix “To mitigate this issue, prevent module bonding from being loaded. Please see https://access.redhat.com/solutions/41278 for how to blacklist a kernel module to prevent it from loading automatically.” RHSA-2026:1494
-
Red Hat Enterprise Linux NFV E4S (v.9.0) kernel-rt 5.14.0-70.163.1.rt21.235.el9_0, kernel-rt-kvm 5.14.0-70.163.1.rt21.235.el9_0, kernel-rt-core 5.14.0-70.163.1.rt21.235.el9_0, kernel-rt-modules 5.14.0-70.163.1.rt21.235.el9_0, kernel-rt-debug-kvm 5.14.0-70.163.1.rt21.235.el9_0, kernel-rt-debug-core 5.14.0-70.163.1.rt21.235.el9_0, +4 more Red Hat Enterprise Linux Real Time E4S (v.9.0) kernel-rt 5.14.0-70.163.1.rt21.235.el9_0, kernel-rt-core 5.14.0-70.163.1.rt21.235.el9_0, kernel-rt-modules 5.14.0-70.163.1.rt21.235.el9_0, kernel-rt-debug-core 5.14.0-70.163.1.rt21.235.el9_0, kernel-rt-debug-modules 5.14.0-70.163.1.rt21.235.el9_0, kernel-rt-modules-extra 5.14.0-70.163.1.rt21.235.el9_0, +2 morefixed: vendor fix “To mitigate this issue, prevent module bonding from being loaded. Please see https://access.redhat.com/solutions/41278 for how to blacklist a kernel module to prevent it from loading automatically.” RHSA-2026:1495
-
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
- total
- Assessed
- 20 mo ago
Exploit prediction
0.29% chance of exploitation in the next 30 days, higher than 21% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA ADP | 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
- Weakness
-
- CWE-416 Use After Free
- Technology feeds
References
-
git.kernel.org
/stable/c/a853b7a3a9fd1d74a4ccdd9cd73512b7dace2f1e
patch
-
git.kernel.org
/stable/c/b90ac60303063a43e17dd4aec159067599d255e6
patch
-
git.kernel.org
/stable/c/f162f7c348fa2a5555bafdb5cc890b89b221e69c
patch
-
git.kernel.org
/stable/c/893825289ba840afd86bfffcb6f7f363c73efff8
patch
-
git.kernel.org
/stable/c/63b2fe509f69b90168a75e04e14573dccf7984e6
patch
-
git.kernel.org
/stable/c/ef0af7d08d26c5333ff4944a559279464edf6f15
patch
-
git.kernel.org
/stable/c/2765749def4765c5052a4c66445cf4c96fcccdbc
patch
-
git.kernel.org
/stable/c/050133e1aa2cb49bb17be847d48a4431598ef562
patch
Sources
- CVE List CVE-2022-49667
- NVD CVE-2022-49667
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.