# CVE-2023-53825: kcm: Fix error handling for SOCK\_DGRAM in kcm\_sendmsg().

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-12-09T01:29:38.539Z
- **Modified:** 2026-06-17T06:46:08.283Z

## Who should check

- Anyone running Linux \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 21b467735b0888a8daa048f83d3b9b50fdab71ce; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< d4b8f380b0a041ee6a84fdac14127d8fe1dcad7b; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 1ce8362b4ac6b8e65fd04a22ea37ec776ee1ec5b; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 2e18493c421428a936946c452461b8e979088f17; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 55d2e7c1ab8eaa7b62575b8a4194132795d1f9fc; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< e5b28ce127a690f3acc49a6a342e6c9442c9edd6; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 992b2ac783aad360b98ed9d4686e86176a20f6f1; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< a22730b1b4bf437c6bbfdeff5feddf54be4aeada
- Anyone running Linux 4.6

## Description

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

kcm: Fix error handling for SOCK\_DGRAM in kcm\_sendmsg().

syzkaller found a memory leak in kcm\_sendmsg(), and commit c821a88bd720
("kcm: Fix memory leak in error path of kcm\_sendmsg()") suppressed it by
updating kcm\_tx\_msg(head)-\>last\_skb if partial data is copied so that the
following sendmsg() will resume from the skb.

However, we cannot know how many bytes were copied when we get the error.
Thus, we could mess up the MSG\_MORE queue.

When kcm\_sendmsg() fails for SOCK\_DGRAM, we should purge the queue as we
do so for UDP by udp\_flush\_pending\_frames().

Even without this change, when the error occurred, the following sendmsg()
resumed from a wrong skb and the queue was messed up.  However, we have
yet to get such a report, and only syzkaller stumbled on it.  So, this
can be changed safely.

Note this does not change SOCK\_SEQPACKET behaviour.

## Affected and fixed versions

- Linux: \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 21b467735b0888a8daa048f83d3b9b50fdab71ce; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< d4b8f380b0a041ee6a84fdac14127d8fe1dcad7b; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 1ce8362b4ac6b8e65fd04a22ea37ec776ee1ec5b; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 2e18493c421428a936946c452461b8e979088f17; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 55d2e7c1ab8eaa7b62575b8a4194132795d1f9fc; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< e5b28ce127a690f3acc49a6a342e6c9442c9edd6; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 992b2ac783aad360b98ed9d4686e86176a20f6f1; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< a22730b1b4bf437c6bbfdeff5feddf54be4aeada (cvelist)
- Linux: 4.6 (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-2023-53825. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53825.md
Affected: Linux >= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, < 21b467735b0888a8daa048f83d3b9b50fdab71ce; >= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, < d4b8f380b0a041ee6a84fdac14127d8fe1dcad7b; >= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, < 1ce8362b4ac6b8e65fd04a22ea37ec776ee1ec5b; >= ab7ac4eb9832e32a09f4e80…
Fixed in: Linux 21b467735b0888a8daa048f83d3b9b50fdab71ce, Linux 1ce8362b4ac6b8e65fd04a22ea37ec776ee1ec5b, Linux 2e18493c421428a936946c452461b8e979088f17, Linux 55d2e7c1ab8eaa7b62575b8a4194132795d1f9fc, Linux 992b2ac783aad360b98ed9d4686e86176a20f6f1

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-53825 being exploited?

There is no confirmed exploitation: CVE-2023-53825 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-53825?

It has no CVSS score yet. Unknown.

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

Linux \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 21b467735b0888a8daa048f83d3b9b50fdab71ce; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< d4b8f380b0a041ee6a84fdac14127d8fe1dcad7b; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 1ce8362b4ac6b8e65fd04a22ea37ec776ee1ec5b; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 2e18493c421428a936946c452461b8e979088f17; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 55d2e7c1ab8eaa7b62575b8a4194132795d1f9fc; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< e5b28ce127a690f3acc49a6a342e6c9442c9edd6; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 992b2ac783aad360b98ed9d4686e86176a20f6f1; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< a22730b1b4bf437c6bbfdeff5feddf54be4aeada; Linux 4.6.

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

Yes. Fixed in Linux 21b467735b0888a8daa048f83d3b9b50fdab71ce, Linux 1ce8362b4ac6b8e65fd04a22ea37ec776ee1ec5b, Linux 2e18493c421428a936946c452461b8e979088f17, Linux 55d2e7c1ab8eaa7b62575b8a4194132795d1f9fc, Linux 992b2ac783aad360b98ed9d4686e86176a20f6f1. No fix listed yet: follow the vendor advisory.

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

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

- other: <https://git.kernel.org/stable/c/21b467735b0888a8daa048f83d3b9b50fdab71ce>
- other: <https://git.kernel.org/stable/c/d4b8f380b0a041ee6a84fdac14127d8fe1dcad7b>
- other: <https://git.kernel.org/stable/c/1ce8362b4ac6b8e65fd04a22ea37ec776ee1ec5b>
- other: <https://git.kernel.org/stable/c/2e18493c421428a936946c452461b8e979088f17>
- other: <https://git.kernel.org/stable/c/55d2e7c1ab8eaa7b62575b8a4194132795d1f9fc>
- other: <https://git.kernel.org/stable/c/e5b28ce127a690f3acc49a6a342e6c9442c9edd6>
- other: <https://git.kernel.org/stable/c/992b2ac783aad360b98ed9d4686e86176a20f6f1>
- other: <https://git.kernel.org/stable/c/a22730b1b4bf437c6bbfdeff5feddf54be4aeada>

## 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-53825>

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