CVE-2023-52653 SUNRPC: fix a memleak in gss_import_v2_context
A memory leak in the Linux kernel's SUNRPC module allows attackers to exhaust system memory, potentially causing a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-52653?
CVE-2023-52653 is a medium-severity denial of service vulnerability in Linux kernel, published on 1 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
SUNRPC: fix a memleak in gss_import_v2_context
The ctx->mech_used.data allocated by kmemdup is not freed in neither gss_import_v2_context nor it only caller gss_krb5_import_sec_context, which frees ctx on error.
Thus, this patch reform the last call of gss_import_v2_context to the gss_krb5_import_ctx_v2, preventing the memleak while keepping the return formation.
Weakness: CWE-401
Which versions are affected by CVE-2023-52653?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-52653?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2023-52653 being exploited?
There is no known exploitation of CVE-2023-52653 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-59595, BELL-CVE-2023-52653, DEBIAN-CVE-2023-52653, GHSA-g77r-j94w-3wm3, ROOT-OS-DEBIAN-11-CVE-2023-52653, ROOT-OS-DEBIAN-12-CVE-2023-52653 and 2 more.