CVE-2023-52748
f2fs: avoid format-overflow warning
Check your servers for CVE-2023-52748
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-52748 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
f2fs: avoid format-overflow warning
With gcc and W=1 option, there's a warning like this:
fs/f2fs/compress.c: In function ‘f2fs_init_page_array_cache’: fs/f2fs/compress.c:1984:47: error: ‘%u’ directive writing between 1 and 7 bytes into a region of size between 5 and 8 [-Werror=format-overflow=] 1984 | sprintf(slab_name, "f2fs_page_array_entry-%u:%u", MAJOR(dev), MINOR(dev)); | ^~
String "f2fs_page_array_entry-%u:%u" can up to 35. The first "%u" can up to 4 and the second "%u" can up to 7, so total size is "24 + 4 + 7 = 35". slab_name's size should be 35 rather than 32.
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.4% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 31083031709eea6530f0551d59eecdb2e68265ef, before c041f5ddef00c731c541e00bc8ae97b8c84c682f affected from 31083031709eea6530f0551d59eecdb2e68265ef, before e4088d7d8f1123006d46a42edf51b8c960a58ef9 affected from 31083031709eea6530f0551d59eecdb2e68265ef, before 526dd7540a09ecf87b5f54f3ab4e0a2528f25a79 affected from 31083031709eea6530f0551d59eecdb2e68265ef, before 6fca08fd3085253b48fcb1bd243a0a5e18821a00 affected from 31083031709eea6530f0551d59eecdb2e68265ef, before 3eebe636cac53886bd5d1cdd55e082ec9e84983f affected from 31083031709eea6530f0551d59eecdb2e68265ef, before e0d4e8acb3789c5a8651061fbab62ca24a45c063
Other versions: unaffected
|
| Linux |
affected 5.10 unaffected before 5.10 unaffected from 5.10.202 up to and including 5.10.* unaffected from 5.15.140 up to and including 5.15.* unaffected from 6.1.64 up to and including 6.1.* unaffected from 6.5.13 up to and including 6.5.* unaffected from 6.6.3 up to and including 6.6.* unaffected 6.7 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-52748 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-52748
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-52748
trivy image --scanners vuln IMAGE | grep CVE-2023-52748
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/c041f5ddef00c731c541e00bc8ae97b8c84c682f git.kernel.org
- https://git.kernel.org/stable/c/e4088d7d8f1123006d46a42edf51b8c960a58ef9 git.kernel.org
- https://git.kernel.org/stable/c/526dd7540a09ecf87b5f54f3ab4e0a2528f25a79 git.kernel.org
- https://git.kernel.org/stable/c/6fca08fd3085253b48fcb1bd243a0a5e18821a00 git.kernel.org
- https://git.kernel.org/stable/c/3eebe636cac53886bd5d1cdd55e082ec9e84983f git.kernel.org
- https://git.kernel.org/stable/c/e0d4e8acb3789c5a8651061fbab62ca24a45c063 git.kernel.org
Source: the record CVE-2023-52748 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse