# CVE-2023-52977: net: openvswitch: fix flow memory leak in ovs\_flow\_cmd\_new

> 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, CNA) `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.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-03-27T16:43:17.234Z
- **Modified:** 2026-06-17T06:44:02.480Z

## Who should check

- Anyone running Linux \>= 655e873bf528f0f46ce6b069f9a2daee9621197c, \< 1ac653cf886cdfc082708c82dc6ac6115cebd2ee; \>= ee27d70556a47c3a07e65a60f47e3ea12a255af8, \< af4e720bc00a2653f7b9df21755b9978b3d7f386; \>= 8b74211bf60b3e0c0ed4fe3d16c92ffdcaaf34eb, \< ed6c5e8caf55778500202775167e8ccdb1a030cb; \>= 6736b61ecf230dd656464de0f514bdeadb384f20, \< 70154489f531587996f3e9d7cceeee65cff0001d; \>= 0133615a06007684df648feb9d327714e399afd4, \< f423c2efd51d7eb1d143c2be7eea233241d9bbbf; \>= 32d5fa5bdccec2361fc6c4ed05a7367155b3a1e9, \< 70d40674a549d498bd63d5432acf46205da1534b; \>= 68bb10101e6b0a6bb44e9c908ef795fc4af99eae, \< 0c598aed445eb45b0ee7ba405f7ece99ee349c30; 4f592e712ea2132f511d545954867d7880df5be2; a991a411c3e21ef22507400dbb179ae02029d42c; \>= 4.9.337, \< 4.10; …
- Anyone running Linux \>= 4.14.303, \< 4.14.306; \>= 4.19.270, \< 4.19.273; \>= 5.4.229, \< 5.4.232; \>= 5.10.163, \< 5.10.168; \>= 5.15.86, \< 5.15.93; \>= 6.1.2, \< 6.1.11

## Description

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

net: openvswitch: fix flow memory leak in ovs\_flow\_cmd\_new

Syzkaller reports a memory leak of new\_flow in ovs\_flow\_cmd\_new() as it is
not freed when an allocation of a key fails.

BUG: memory leak
unreferenced object 0xffff888116668000 (size 632):
  comm "syz-executor231", pid 1090, jiffies 4294844701 (age 18.871s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    \[\<00000000defa3494\>\] kmem\_cache\_zalloc include/linux/slab.h:654 \[inline\]
    \[\<00000000defa3494\>\] ovs\_flow\_alloc+0x19/0x180 net/openvswitch/flow\_table.c:77
    \[\<00000000c67d8873\>\] ovs\_flow\_cmd\_new+0x1de/0xd40 net/openvswitch/datapath.c:957
    \[\<0000000010a539a8\>\] genl\_family\_rcv\_msg\_doit+0x22d/0x330 net/netlink/genetlink.c:739
    \[\<00000000dff3302d\>\] genl\_family\_rcv\_msg net/netlink/genetlink.c:783 \[inline\]
    \[\<00000000dff3302d\>\] genl\_rcv\_msg+0x328/0x590 net/netlink/genetlink.c:800
    \[\<000000000286dd87\>\] netlink\_rcv\_skb+0x153/0x430 net/netlink/af\_netlink.c:2515
    \[\<0000000061fed410\>\] genl\_rcv+0x24/0x40 net/netlink/genetlink.c:811
    \[\<000000009dc0f111\>\] netlink\_unicast\_kernel net/netlink/af\_netlink.c:1313 \[inline\]
    \[\<000000009dc0f111\>\] netlink\_unicast+0x545/0x7f0 net/netlink/af\_netlink.c:1339
    \[\<000000004a5ee816\>\] netlink\_sendmsg+0x8e7/0xde0 net/netlink/af\_netlink.c:1934
    \[\<00000000482b476f\>\] sock\_sendmsg\_nosec net/socket.c:651 \[inline\]
    \[\<00000000482b476f\>\] sock\_sendmsg+0x152/0x190 net/socket.c:671
    \[\<00000000698574ba\>\] \_\_\_\_sys\_sendmsg+0x70a/0x870 net/socket.c:2356
    \[\<00000000d28d9e11\>\] \_\_\_sys\_sendmsg+0xf3/0x170 net/socket.c:2410
    \[\<0000000083ba9120\>\] \_\_sys\_sendmsg+0xe5/0x1b0 net/socket.c:2439
    \[\<00000000c00628f8\>\] do\_syscall\_64+0x30/0x40 arch/x86/entry/common.c:46
    \[\<000000004abfdcf4\>\] entry\_SYSCALL\_64\_after\_hwframe+0x61/0xc6

To fix this the patch rearranges the goto labels to reflect the order of
object allocations and adds appropriate goto statements on the error
paths.

Found by Linux Verification Center (linuxtesting.org) with Syzkaller.

## Affected and fixed versions

- Linux: \>= 655e873bf528f0f46ce6b069f9a2daee9621197c, \< 1ac653cf886cdfc082708c82dc6ac6115cebd2ee; \>= ee27d70556a47c3a07e65a60f47e3ea12a255af8, \< af4e720bc00a2653f7b9df21755b9978b3d7f386; \>= 8b74211bf60b3e0c0ed4fe3d16c92ffdcaaf34eb, \< ed6c5e8caf55778500202775167e8ccdb1a030cb; \>= 6736b61ecf230dd656464de0f514bdeadb384f20, \< 70154489f531587996f3e9d7cceeee65cff0001d; \>= 0133615a06007684df648feb9d327714e399afd4, \< f423c2efd51d7eb1d143c2be7eea233241d9bbbf; \>= 32d5fa5bdccec2361fc6c4ed05a7367155b3a1e9, \< 70d40674a549d498bd63d5432acf46205da1534b; \>= 68bb10101e6b0a6bb44e9c908ef795fc4af99eae, \< 0c598aed445eb45b0ee7ba405f7ece99ee349c30; 4f592e712ea2132f511d545954867d7880df5be2; a991a411c3e21ef22507400dbb179ae02029d42c; \>= 4.9.337, \< 4.10; … (cvelist)
- Linux: \>= 4.14.303, \< 4.14.306; \>= 4.19.270, \< 4.19.273; \>= 5.4.229, \< 5.4.232; \>= 5.10.163, \< 5.10.168; \>= 5.15.86, \< 5.15.93; \>= 6.1.2, \< 6.1.11 (cvelist)

## Mitigation

- Upgrade Linux to 6.1.11 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-52977.md
Affected: Linux >= 655e873bf528f0f46ce6b069f9a2daee9621197c, < 1ac653cf886cdfc082708c82dc6ac6115cebd2ee; >= ee27d70556a47c3a07e65a60f47e3ea12a255af8, < af4e720bc00a2653f7b9df21755b9978b3d7f386; >= 8b74211bf60b3e0c0ed4fe3d16c92ffdcaaf34eb, < ed6c5e8caf55778500202775167e8ccdb1a030cb; >= 6736b61ecf230dd656464de…
Fixed in: Linux 1ac653cf886cdfc082708c82dc6ac6115cebd2ee, Linux 70154489f531587996f3e9d7cceeee65cff0001d, Linux 70d40674a549d498bd63d5432acf46205da1534b, Linux 0c598aed445eb45b0ee7ba405f7ece99ee349c30, Linux 4.10, Linux 4.14.306, Linux 4.19.273, Linux 5.4.232, Linux 5.10.168, Linux 5.15.93, Linux 6.1.11

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-2023-52977 being exploited?

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

### How serious is CVE-2023-52977?

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

### Which versions are affected by CVE-2023-52977?

Linux \>= 655e873bf528f0f46ce6b069f9a2daee9621197c, \< 1ac653cf886cdfc082708c82dc6ac6115cebd2ee; \>= ee27d70556a47c3a07e65a60f47e3ea12a255af8, \< af4e720bc00a2653f7b9df21755b9978b3d7f386; \>= 8b74211bf60b3e0c0ed4fe3d16c92ffdcaaf34eb, \< ed6c5e8caf55778500202775167e8ccdb1a030cb; \>= 6736b61ecf230dd656464de0f514bdeadb384f20, \< 70154489f531587996f3e9d7cceeee65cff0001d; \>= 0133615a06007684df648feb9d327714e399afd4, \< f423c2efd51d7eb1d143c2be7eea233241d9bbbf; \>= 32d5fa5bdccec2361fc6c4ed05a7367155b3a1e9, \< 70d40674a549d498bd63d5432acf46205da1534b; \>= 68bb10101e6b0a6bb44e9c908ef795fc4af99eae, \< 0c598aed445eb45b0ee7ba405f7ece99ee349c30; 4f592e712ea2132f511d545954867d7880df5be2; a991a411c3e21ef22507400dbb179ae02029d42c; \>= 4.9.337, \< 4.10; …; Linux \>= 4.14.303, \< 4.14.306; \>= 4.19.270, \< 4.19.273; \>= 5.4.229, \< 5.4.232; \>= 5.10.163, \< 5.10.168; \>= 5.15.86, \< 5.15.93; \>= 6.1.2, \< 6.1.11.

### Is there a fix for CVE-2023-52977?

Yes. Fixed in Linux 1ac653cf886cdfc082708c82dc6ac6115cebd2ee, Linux 70154489f531587996f3e9d7cceeee65cff0001d, Linux 70d40674a549d498bd63d5432acf46205da1534b, Linux 0c598aed445eb45b0ee7ba405f7ece99ee349c30, Linux 4.10, Linux 4.14.306, Linux 4.19.273, Linux 5.4.232, Linux 5.10.168, Linux 5.15.93, Linux 6.1.11. Upgrade Linux to 6.1.11 or later.

### How do I check if I'm affected by CVE-2023-52977?

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/1ac653cf886cdfc082708c82dc6ac6115cebd2ee>
- patch: <https://git.kernel.org/stable/c/af4e720bc00a2653f7b9df21755b9978b3d7f386>
- patch: <https://git.kernel.org/stable/c/ed6c5e8caf55778500202775167e8ccdb1a030cb>
- patch: <https://git.kernel.org/stable/c/70154489f531587996f3e9d7cceeee65cff0001d>
- patch: <https://git.kernel.org/stable/c/f423c2efd51d7eb1d143c2be7eea233241d9bbbf>
- patch: <https://git.kernel.org/stable/c/70d40674a549d498bd63d5432acf46205da1534b>
- patch: <https://git.kernel.org/stable/c/0c598aed445eb45b0ee7ba405f7ece99ee349c30>

## 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-2023-52977>

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