CVE-2023-52748 json
f2fs: avoid format-overflow warning
published 2y ago modified 5mo ago also EUVD-2023-59467
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 16%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 5.10.202, 5.15.140, 6.1.64, 6.5.13, 6.6.3, 6.7
- linux Debian 12 6.1.64-1
- linux Debian 14, Debian 13 6.6.8-1
debian advisories DEBIAN-CVE-2023-52748
- linux Ubuntu 22.04 LTS 5.15.0-100.110
- linux-aws Ubuntu 22.04 LTS 5.15.0-1056.61
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1053.61
- linux-gke Ubuntu 22.04 LTS 5.15.0-1052.57
- linux-ibm Ubuntu 22.04 LTS 5.15.0-1048.51
- linux-kvm Ubuntu 22.04 LTS 5.15.0-1052.57
- linux-azure Ubuntu 22.04 LTS 5.15.0-1058.66
- linux-gkeop Ubuntu 22.04 LTS 5.15.0-1038.44
ubuntu advisories UBUNTU-CVE-2023-52748
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- git.kernel.org/stable/c/c041f5ddef00c731c541e00bc8ae97b8c84c682f commit
- git.kernel.org/stable/c/e4088d7d8f1123006d46a42edf51b8c960a58ef9 commit
- git.kernel.org/stable/c/526dd7540a09ecf87b5f54f3ab4e0a2528f25a79 commit
- git.kernel.org/stable/c/6fca08fd3085253b48fcb1bd243a0a5e18821a00 commit
- git.kernel.org/stable/c/3eebe636cac53886bd5d1cdd55e082ec9e84983f commit
- git.kernel.org/stable/c/e0d4e8acb3789c5a8651061fbab62ca24a45c063 commit
Is CVE-2023-52748 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-52748 updated cvss 5.5
kernel: f2fs: avoid format-overflow warning
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2y ago
Exploit prediction
0.25% chance of exploitation in the next 30 days, higher than 16% of all scored CVEs (FIRST EPSS, 2026-11-19).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-787 Out-of-bounds Write
- Technology feeds
References
-
git.kernel.org
/stable/c/c041f5ddef00c731c541e00bc8ae97b8c84c682f
patch
-
git.kernel.org
/stable/c/e4088d7d8f1123006d46a42edf51b8c960a58ef9
patch
-
git.kernel.org
/stable/c/526dd7540a09ecf87b5f54f3ab4e0a2528f25a79
patch
-
git.kernel.org
/stable/c/6fca08fd3085253b48fcb1bd243a0a5e18821a00
patch
-
git.kernel.org
/stable/c/3eebe636cac53886bd5d1cdd55e082ec9e84983f
patch
-
git.kernel.org
/stable/c/e0d4e8acb3789c5a8651061fbab62ca24a45c063
patch
Sources
- CVE List CVE-2023-52748
- NVD CVE-2023-52748
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.