CVE-2023-52924
MediumIn the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: don't skip expired elements during walk There is an asymmetry between commit/abort and preparation phase if the following conditions are met: 1. set is a verdict map ("1.2.3.4 : jump foo") 2. timeouts are enabled In this case, following sequence is problematic: 1. element E in set S refers to chain C 2. userspace requests removal of set S 3. kernel does a set walk to decrement chain->use count for all elements from preparation phase 4. kernel does another set walk to remove elements from the commit phase (or another walk to do a chain->use increment for all elements from abort phase) If E has already expired in 1), it will be ignored during list walk, so its use count won't have been changed. Then, when set is culled, ->destroy callback will zap the element via nf_tables_set_elem_destroy(), but this function is only safe for elements that have been deactivated earlier from the preparation phase: lack of earlier deactivate removes the element but leaks the chain use count, which results in a WARN splat when the chain gets removed later, plus a leak of the nft_chain structure. Update pipapo_get() not to skip expired elements, otherwise flush command reports bogus ENOENT errors.
CVSS 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected versions
Linux kernel versions
4.1
and later are affected. Fixed in
4.19.316,
5.4.262,
5.10.198,
5.15.134,
6.1.56,
6.4.11,
6.5
and their respective stable series.
References
The following references provide additional information about CVE-2023-52924 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/1da4874d05da1526b11b82fc7f3c7ac38749ddf8
-
PatchKernel patch commithttps://git.kernel.org/stable/c/24138933b97b055d486e8064b4a1721702442a9b
-
PatchKernel patch commithttps://git.kernel.org/stable/c/59dab3bf0b8fc08eb802721c0532f13dd89209b8
Frequently asked questions
-
What is CVE-2023-52924?
CVE-2023-52924 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 . It affects Linux kernel versions from 4.1 onward and has been patched in 4.19.316, 5.4.262, 5.10.198 and others. CVE-2023-52924 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2023-52924?
CVE-2023-52924 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2023-52924?
Yes — CVE-2023-52924 has been patched. Fixed versions include 4.19.316, 5.4.262, 5.10.198 and others. If you are running Linux kernel 4.1 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2023-52924 actively exploited?
No — CVE-2023-52924 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.