# CVE-2021-46955: openvswitch: fix stack OOB read while fragmenting IPv4 packets

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

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.75% (percentile 51, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2024-02-27T18:46:57.428Z
- **Modified:** 2026-08-05T08:45:12.777Z

## Who should check

- Anyone running Linux \>= 119bbaa6795a4f4aed46994cc7d9ab01989c87e3, \< b1d7280f9ba1bfdbc3af5bdb82e51f014854f26f; \>= d543907a4730400f5c5b684c57cb5bbbfd6136ab, \< 23e17ec1a5eb53fe39cc34fa5592686d5acd0dac; \>= 8387fbac8e18e26a60559adc63e0b7067303b0a4, \< 5a52fa8ad45b5a593ed416adf326538638454ff1; \>= d52e5a7e7ca49457dd31fc8b42fb7c0d58a31221, \< df9e900de24637be41879e2c50afb713ec4e8b2e; \>= d52e5a7e7ca49457dd31fc8b42fb7c0d58a31221, \< 490ad0a2390442d0a7b8c00972a83dbb09cab142; \>= d52e5a7e7ca49457dd31fc8b42fb7c0d58a31221, \< a1478374b0bda89b4277a8afd39208271faad4be; \>= d52e5a7e7ca49457dd31fc8b42fb7c0d58a31221, \< d841d3cf5297fde4ce6a41ff35451d0e82917f3e; \>= d52e5a7e7ca49457dd31fc8b42fb7c0d58a31221, \< b3502b04e84ac5349be95fc033c17bd701d2787a; \>= d52e5a7e7ca49457dd31fc8b42fb7c0d58a31221, \< 7c0ea5930c1c211931819d83cfb157bff1539a4c; df9ece1148e2ec242871623dedb004f7a1387125; …
- Anyone running Linux 4.16

## Description

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

openvswitch: fix stack OOB read while fragmenting IPv4 packets

running openvswitch on kernels built with KASAN, it's possible to see the
following splat while testing fragmentation of IPv4 packets:

 BUG: KASAN: stack-out-of-bounds in ip\_do\_fragment+0x1b03/0x1f60
 Read of size 1 at addr ffff888112fc713c by task handler2/1367

 CPU: 0 PID: 1367 Comm: handler2 Not tainted 5.12.0-rc6+ \#418
 Hardware name: Red Hat KVM, BIOS 1.11.1-4.module+el8.1.0+4066+0f1aadab 04/01/2014
 Call Trace:
  dump\_stack+0x92/0xc1
  print\_address\_description.constprop.7+0x1a/0x150
  kasan\_report.cold.13+0x7f/0x111
  ip\_do\_fragment+0x1b03/0x1f60
  ovs\_fragment+0x5bf/0x840 \[openvswitch\]
  do\_execute\_actions+0x1bd5/0x2400 \[openvswitch\]
  ovs\_execute\_actions+0xc8/0x3d0 \[openvswitch\]
  ovs\_packet\_cmd\_execute+0xa39/0x1150 \[openvswitch\]
  genl\_family\_rcv\_msg\_doit.isra.15+0x227/0x2d0
  genl\_rcv\_msg+0x287/0x490
  netlink\_rcv\_skb+0x120/0x380
  genl\_rcv+0x24/0x40
  netlink\_unicast+0x439/0x630
  netlink\_sendmsg+0x719/0xbf0
  sock\_sendmsg+0xe2/0x110
  \_\_\_\_sys\_sendmsg+0x5ba/0x890
  \_\_\_sys\_sendmsg+0xe9/0x160
  \_\_sys\_sendmsg+0xd3/0x170
  do\_syscall\_64+0x33/0x40
  entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae
 RIP: 0033:0x7f957079db07
 Code: c3 66 90 41 54 41 89 d4 55 48 89 f5 53 89 fb 48 83 ec 10 e8 eb ec ff ff 44 89 e2 48 89 ee 89 df 41 89 c0 b8 2e 00 00 00 0f 05 \<48\> 3d 00 f0 ff ff 77 35 44 89 c7 48 89 44 24 08 e8 24 ed ff ff 48
 RSP: 002b:00007f956ce35a50 EFLAGS: 00000293 ORIG\_RAX: 000000000000002e
 RAX: ffffffffffffffda RBX: 0000000000000019 RCX: 00007f957079db07
 RDX: 0000000000000000 RSI: 00007f956ce35ae0 RDI: 0000000000000019
 RBP: 00007f956ce35ae0 R08: 0000000000000000 R09: 00007f9558006730
 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
 R13: 00007f956ce37308 R14: 00007f956ce35f80 R15: 00007f956ce35ae0

 The buggy address belongs to the page:
 page:00000000af2a1d93 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x112fc7
 flags: 0x17ffffc0000000()
 raw: 0017ffffc0000000 0000000000000000 dead000000000122 0000000000000000
 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
 page dumped because: kasan: bad access detected

 addr ffff888112fc713c is located in stack of task handler2/1367 at offset 180 in frame:
  ovs\_fragment+0x0/0x840 \[openvswitch\]

 this frame has 2 objects:
  \[32, 144) 'ovs\_dst'
  \[192, 424) 'ovs\_rt'

 Memory state around the buggy address:
  ffff888112fc7000: f3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  ffff888112fc7080: 00 f1 f1 f1 f1 00 00 00 00 00 00 00 00 00 00 00
 \>ffff888112fc7100: 00 00 00 f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 00
                                         ^
  ffff888112fc7180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  ffff888112fc7200: 00 00 00 00 00 00 f2 f2 f2 00 00 00 00 00 00 00

for IPv4 packets, ovs\_fragment() uses a temporary struct dst\_entry. Then,
in the following call graph:

  ip\_do\_fragment()
    ip\_skb\_dst\_mtu()
      ip\_dst\_mtu\_maybe\_forward()
        ip\_mtu\_locked()

the pointer to struct dst\_entry is used as pointer to struct rtable: this
turns the access to struct members like rt\_mtu\_locked into an OOB read in
the stack. Fix this changing the temporary variable used for IPv4 packets
in ovs\_fragment(), similarly to what is done for IPv6 few lines below.

## Affected and fixed versions

- Linux: \>= 119bbaa6795a4f4aed46994cc7d9ab01989c87e3, \< b1d7280f9ba1bfdbc3af5bdb82e51f014854f26f; \>= d543907a4730400f5c5b684c57cb5bbbfd6136ab, \< 23e17ec1a5eb53fe39cc34fa5592686d5acd0dac; \>= 8387fbac8e18e26a60559adc63e0b7067303b0a4, \< 5a52fa8ad45b5a593ed416adf326538638454ff1; \>= d52e5a7e7ca49457dd31fc8b42fb7c0d58a31221, \< df9e900de24637be41879e2c50afb713ec4e8b2e; \>= d52e5a7e7ca49457dd31fc8b42fb7c0d58a31221, \< 490ad0a2390442d0a7b8c00972a83dbb09cab142; \>= d52e5a7e7ca49457dd31fc8b42fb7c0d58a31221, \< a1478374b0bda89b4277a8afd39208271faad4be; \>= d52e5a7e7ca49457dd31fc8b42fb7c0d58a31221, \< d841d3cf5297fde4ce6a41ff35451d0e82917f3e; \>= d52e5a7e7ca49457dd31fc8b42fb7c0d58a31221, \< b3502b04e84ac5349be95fc033c17bd701d2787a; \>= d52e5a7e7ca49457dd31fc8b42fb7c0d58a31221, \< 7c0ea5930c1c211931819d83cfb157bff1539a4c; df9ece1148e2ec242871623dedb004f7a1387125; … (cvelist)
- Linux: 4.16 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2021-46955.md
Affected: Linux >= 119bbaa6795a4f4aed46994cc7d9ab01989c87e3, < b1d7280f9ba1bfdbc3af5bdb82e51f014854f26f; >= d543907a4730400f5c5b684c57cb5bbbfd6136ab, < 23e17ec1a5eb53fe39cc34fa5592686d5acd0dac; >= 8387fbac8e18e26a60559adc63e0b7067303b0a4, < 5a52fa8ad45b5a593ed416adf326538638454ff1; >= d52e5a7e7ca49457dd31fc8…
Fixed in: Linux 23e17ec1a5eb53fe39cc34fa5592686d5acd0dac, Linux 5a52fa8ad45b5a593ed416adf326538638454ff1, Linux 490ad0a2390442d0a7b8c00972a83dbb09cab142, Linux 7c0ea5930c1c211931819d83cfb157bff1539a4c

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-2021-46955 being exploited?

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

### How serious is CVE-2021-46955?

High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2021-46955?

Linux \>= 119bbaa6795a4f4aed46994cc7d9ab01989c87e3, \< b1d7280f9ba1bfdbc3af5bdb82e51f014854f26f; \>= d543907a4730400f5c5b684c57cb5bbbfd6136ab, \< 23e17ec1a5eb53fe39cc34fa5592686d5acd0dac; \>= 8387fbac8e18e26a60559adc63e0b7067303b0a4, \< 5a52fa8ad45b5a593ed416adf326538638454ff1; \>= d52e5a7e7ca49457dd31fc8b42fb7c0d58a31221, \< df9e900de24637be41879e2c50afb713ec4e8b2e; \>= d52e5a7e7ca49457dd31fc8b42fb7c0d58a31221, \< 490ad0a2390442d0a7b8c00972a83dbb09cab142; \>= d52e5a7e7ca49457dd31fc8b42fb7c0d58a31221, \< a1478374b0bda89b4277a8afd39208271faad4be; \>= d52e5a7e7ca49457dd31fc8b42fb7c0d58a31221, \< d841d3cf5297fde4ce6a41ff35451d0e82917f3e; \>= d52e5a7e7ca49457dd31fc8b42fb7c0d58a31221, \< b3502b04e84ac5349be95fc033c17bd701d2787a; \>= d52e5a7e7ca49457dd31fc8b42fb7c0d58a31221, \< 7c0ea5930c1c211931819d83cfb157bff1539a4c; df9ece1148e2ec242871623dedb004f7a1387125; …; Linux 4.16.

### Is there a fix for CVE-2021-46955?

Yes. Fixed in Linux 23e17ec1a5eb53fe39cc34fa5592686d5acd0dac, Linux 5a52fa8ad45b5a593ed416adf326538638454ff1, Linux 490ad0a2390442d0a7b8c00972a83dbb09cab142, Linux 7c0ea5930c1c211931819d83cfb157bff1539a4c. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2021-46955?

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/b1d7280f9ba1bfdbc3af5bdb82e51f014854f26f>
- patch: <https://git.kernel.org/stable/c/23e17ec1a5eb53fe39cc34fa5592686d5acd0dac>
- patch: <https://git.kernel.org/stable/c/5a52fa8ad45b5a593ed416adf326538638454ff1>
- patch: <https://git.kernel.org/stable/c/df9e900de24637be41879e2c50afb713ec4e8b2e>
- patch: <https://git.kernel.org/stable/c/490ad0a2390442d0a7b8c00972a83dbb09cab142>
- patch: <https://git.kernel.org/stable/c/a1478374b0bda89b4277a8afd39208271faad4be>
- patch: <https://git.kernel.org/stable/c/d841d3cf5297fde4ce6a41ff35451d0e82917f3e>
- patch: <https://git.kernel.org/stable/c/b3502b04e84ac5349be95fc033c17bd701d2787a>
- patch: <https://git.kernel.org/stable/c/7c0ea5930c1c211931819d83cfb157bff1539a4c>

## 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-2021-46955>

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