# CVE-2022-48640: bonding: fix NULL deref in bond\_rr\_gen\_slave\_id

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-04-28T12:59:48.510Z
- **Modified:** 2026-06-17T05:15:47.767Z

## Who should check

- Anyone running Linux \>= 848ca9182a7d25bb54955c3aab9a3a2742bf9678, \< ec3a6f4ffe556a28f6f5028bf7c4412557e7051b; \>= 848ca9182a7d25bb54955c3aab9a3a2742bf9678, \< 2c8e8ab53acfc78da0b4a65f30cb5d306e7d78f7; \>= 848ca9182a7d25bb54955c3aab9a3a2742bf9678, \< 0e400d602f46360752e4b32ce842dba3808e15e6
- Anyone running Linux 5.14

## Description

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

bonding: fix NULL deref in bond\_rr\_gen\_slave\_id

Fix a NULL dereference of the struct bonding.rr\_tx\_counter member because
if a bond is initially created with an initial mode != zero (Round Robin)
the memory required for the counter is never created and when the mode is
changed there is never any attempt to verify the memory is allocated upon
switching modes.

This causes the following Oops on an aarch64 machine:
    \[  334.686773\] Unable to handle kernel paging request at virtual address ffff2c91ac905000
    \[  334.694703\] Mem abort info:
    \[  334.697486\]   ESR = 0x0000000096000004
    \[  334.701234\]   EC = 0x25: DABT (current EL), IL = 32 bits
    \[  334.706536\]   SET = 0, FnV = 0
    \[  334.709579\]   EA = 0, S1PTW = 0
    \[  334.712719\]   FSC = 0x04: level 0 translation fault
    \[  334.717586\] Data abort info:
    \[  334.720454\]   ISV = 0, ISS = 0x00000004
    \[  334.724288\]   CM = 0, WnR = 0
    \[  334.727244\] swapper pgtable: 4k pages, 48-bit VAs, pgdp=000008044d662000
    \[  334.733944\] \[ffff2c91ac905000\] pgd=0000000000000000, p4d=0000000000000000
    \[  334.740734\] Internal error: Oops: 96000004 \[\#1\] SMP
    \[  334.745602\] Modules linked in: bonding tls veth rfkill sunrpc arm\_spe\_pmu vfat fat acpi\_ipmi ipmi\_ssif ixgbe igb i40e mdio ipmi\_devintf ipmi\_msghandler arm\_cmn arm\_dsu\_pmu cppc\_cpufreq acpi\_tad fuse zram crct10dif\_ce ast ghash\_ce sbsa\_gwdt nvme drm\_vram\_helper drm\_ttm\_helper nvme\_core ttm xgene\_hwmon
    \[  334.772217\] CPU: 7 PID: 2214 Comm: ping Not tainted 6.0.0-rc4-00133-g64ae13ed4784 \#4
    \[  334.779950\] Hardware name: GIGABYTE R272-P31-00/MP32-AR1-00, BIOS F18v (SCP: 1.08.20211002) 12/01/2021
    \[  334.789244\] pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    \[  334.796196\] pc : bond\_rr\_gen\_slave\_id+0x40/0x124 \[bonding\]
    \[  334.801691\] lr : bond\_xmit\_roundrobin\_slave\_get+0x38/0xdc \[bonding\]
    \[  334.807962\] sp : ffff8000221733e0
    \[  334.811265\] x29: ffff8000221733e0 x28: ffffdbac8572d198 x27: ffff80002217357c
    \[  334.818392\] x26: 000000000000002a x25: ffffdbacb33ee000 x24: ffff07ff980fa000
    \[  334.825519\] x23: ffffdbacb2e398ba x22: ffff07ff98102000 x21: ffff07ff981029c0
    \[  334.832646\] x20: 0000000000000001 x19: ffff07ff981029c0 x18: 0000000000000014
    \[  334.839773\] x17: 0000000000000000 x16: ffffdbacb1004364 x15: 0000aaaabe2f5a62
    \[  334.846899\] x14: ffff07ff8e55d968 x13: ffff07ff8e55db30 x12: 0000000000000000
    \[  334.854026\] x11: ffffdbacb21532e8 x10: 0000000000000001 x9 : ffffdbac857178ec
    \[  334.861153\] x8 : ffff07ff9f6e5a28 x7 : 0000000000000000 x6 : 000000007c2b3742
    \[  334.868279\] x5 : ffff2c91ac905000 x4 : ffff2c91ac905000 x3 : ffff07ff9f554400
    \[  334.875406\] x2 : ffff2c91ac905000 x1 : 0000000000000001 x0 : ffff07ff981029c0
    \[  334.882532\] Call trace:
    \[  334.884967\]  bond\_rr\_gen\_slave\_id+0x40/0x124 \[bonding\]
    \[  334.890109\]  bond\_xmit\_roundrobin\_slave\_get+0x38/0xdc \[bonding\]
    \[  334.896033\]  \_\_bond\_start\_xmit+0x128/0x3a0 \[bonding\]
    \[  334.901001\]  bond\_start\_xmit+0x54/0xb0 \[bonding\]
    \[  334.905622\]  dev\_hard\_start\_xmit+0xb4/0x220
    \[  334.909798\]  \_\_dev\_queue\_xmit+0x1a0/0x720
    \[  334.913799\]  arp\_xmit+0x3c/0xbc
    \[  334.916932\]  arp\_send\_dst+0x98/0xd0
    \[  334.920410\]  arp\_solicit+0xe8/0x230
    \[  334.923888\]  neigh\_probe+0x60/0xb0
    \[  334.927279\]  \_\_neigh\_event\_send+0x3b0/0x470
    \[  334.931453\]  neigh\_resolve\_output+0x70/0x90
    \[  334.935626\]  ip\_finish\_output2+0x158/0x514
    \[  334.939714\]  \_\_ip\_finish\_output+0xac/0x1a4
    \[  334.943800\]  ip\_finish\_output+0x40/0xfc
    \[  334.947626\]  ip\_output+0xf8/0x1a4
    \[  334.950931\]  ip\_send\_skb+0x5c/0x100
    \[  334.954410\]  ip\_push\_pending\_frames+0x3c/0x60
    \[  334.958758\]  raw\_sendmsg+0x458/0x6d0
    \[  334.962325\]  inet\_sendmsg+0x50/0x80
    \[  334.965805\]  sock\_sendmsg+0x60/0x6c
    \[  334.969286\]  \_\_sys\_sendto+0xc8/0x134
    \[  334.972853\]  \_\_arm64\_sys\_sendto+0x34/0x4c
---truncated---

## Affected and fixed versions

- Linux: \>= 848ca9182a7d25bb54955c3aab9a3a2742bf9678, \< ec3a6f4ffe556a28f6f5028bf7c4412557e7051b; \>= 848ca9182a7d25bb54955c3aab9a3a2742bf9678, \< 2c8e8ab53acfc78da0b4a65f30cb5d306e7d78f7; \>= 848ca9182a7d25bb54955c3aab9a3a2742bf9678, \< 0e400d602f46360752e4b32ce842dba3808e15e6 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 0e400d602f46360752e4b32ce842dba3808e15e6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-48640. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48640.md
Affected: Linux >= 848ca9182a7d25bb54955c3aab9a3a2742bf9678, < ec3a6f4ffe556a28f6f5028bf7c4412557e7051b; >= 848ca9182a7d25bb54955c3aab9a3a2742bf9678, < 2c8e8ab53acfc78da0b4a65f30cb5d306e7d78f7; >= 848ca9182a7d25bb54955c3aab9a3a2742bf9678, < 0e400d602f46360752e4b32ce842dba3808e15e6; Linux 5.14
Fixed in: Linux 2c8e8ab53acfc78da0b4a65f30cb5d306e7d78f7, Linux 0e400d602f46360752e4b32ce842dba3808e15e6

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-48640 being exploited?

There is no confirmed exploitation: CVE-2022-48640 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-48640?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-48640?

Linux \>= 848ca9182a7d25bb54955c3aab9a3a2742bf9678, \< ec3a6f4ffe556a28f6f5028bf7c4412557e7051b; \>= 848ca9182a7d25bb54955c3aab9a3a2742bf9678, \< 2c8e8ab53acfc78da0b4a65f30cb5d306e7d78f7; \>= 848ca9182a7d25bb54955c3aab9a3a2742bf9678, \< 0e400d602f46360752e4b32ce842dba3808e15e6; Linux 5.14.

### Is there a fix for CVE-2022-48640?

Yes. Fixed in Linux 2c8e8ab53acfc78da0b4a65f30cb5d306e7d78f7, Linux 0e400d602f46360752e4b32ce842dba3808e15e6. Upgrade Linux to 0e400d602f46360752e4b32ce842dba3808e15e6 or later.

### How do I check if I'm affected by CVE-2022-48640?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/ec3a6f4ffe556a28f6f5028bf7c4412557e7051b>
- patch: <https://git.kernel.org/stable/c/2c8e8ab53acfc78da0b4a65f30cb5d306e7d78f7>
- patch: <https://git.kernel.org/stable/c/0e400d602f46360752e4b32ce842dba3808e15e6>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-48640>

HTML: <https://flawdb.com/CVE-2022-48640> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-48640>
