CVE-2023-53825

Source
https://cve.org/CVERecord?id=CVE-2023-53825
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53825.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-53825
Downstream
Related
Published
2025-12-09T01:29:38.539Z
Modified
2026-03-28T17:43:42.909485Z
Summary
kcm: Fix error handling for SOCK_DGRAM in kcm_sendmsg().
Details

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

kcm: Fix error handling for SOCKDGRAM in kcmsendmsg().

syzkaller found a memory leak in kcmsendmsg(), and commit c821a88bd720 ("kcm: Fix memory leak in error path of kcmsendmsg()") suppressed it by updating kcmtxmsg(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 kcmsendmsg() fails for SOCKDGRAM, we should purge the queue as we do so for UDP by udpflushpending_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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53825.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ab7ac4eb9832e32a09f4e8042705484d2fb0aad3
Fixed
21b467735b0888a8daa048f83d3b9b50fdab71ce
Fixed
d4b8f380b0a041ee6a84fdac14127d8fe1dcad7b
Fixed
1ce8362b4ac6b8e65fd04a22ea37ec776ee1ec5b
Fixed
2e18493c421428a936946c452461b8e979088f17
Fixed
55d2e7c1ab8eaa7b62575b8a4194132795d1f9fc
Fixed
e5b28ce127a690f3acc49a6a342e6c9442c9edd6
Fixed
992b2ac783aad360b98ed9d4686e86176a20f6f1
Fixed
a22730b1b4bf437c6bbfdeff5feddf54be4aeada

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53825.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.6.0
Fixed
4.14.326
Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
4.19.295
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.257
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.195
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.132
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.54
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.5.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53825.json"