CVE-2023-52566 json
nilfs2: fix potential use after free in nilfs_gccache_submit_read_data()
published 2y ago modified 5mo ago also EUVD-2023-57190
- cvss
- 5.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 14%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
nilfs2: fix potential use after free in nilfs_gccache_submit_read_data()
In nilfs_gccache_submit_read_data(), brelse(bh) is called to drop the reference count of bh when the call to nilfs_dat_translate() fails. If the reference count hits 0 and its owner page gets unlocked, bh may be freed. However, bh->b_page is dereferenced to put the page after that, which may result in a use-after-free bug. This patch moves the release operation after unlocking and putting the page.
NOTE: The function in question is only called in GC, and in combination with current userland tools, address translation using DAT does not occur in that function, so the code path that causes this issue will not be executed. However, it is possible to run that code path by intentionally modifying the userland GC library or by calling the GC ioctl directly.
[konishi.ryusuke@gmail.com: NOTE added to the commit log]
Patch / fix
- Linux Linux 4.14.327, 4.19.296, 5.4.258, 5.10.198, 5.15.134, 6.1.56, 6.5.6, 6.6
- linux Debian 12 6.1.64-1
- linux Debian 14, Debian 13 6.5.6-1
debian advisories DEBIAN-CVE-2023-52566
- linux Ubuntu 20.04 LTS 5.4.0-171.189
- linux Ubuntu 22.04 LTS 5.15.0-94.104
- linux-aws Ubuntu 20.04 LTS 5.4.0-1118.128
- linux-aws Ubuntu 22.04 LTS 5.15.0-1053.58
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1122.131
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1051.59
- linux-gke Ubuntu 22.04 LTS 5.15.0-1050.55
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1065.70
ubuntu advisories UBUNTU-CVE-2023-52566
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
- kernel-azure SLE Module for Public Cloud 15 SP5, openSUSE Leap 15.5 5.14.21-150500.33.48.1
- kernel-syms-azure SLE Module for Public Cloud 15 SP5, openSUSE Leap 15.5 5.14.21-150500.33.48.1
- kernel-source-azure SLE Module for Public Cloud 15 SP5, openSUSE Leap 15.5 5.14.21-150500.33.48.1
- dtb-aarch64 openSUSE Leap 15.5 5.14.21-150500.55.59.1
- kernel-64kb SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.59.1
- kernel-syms SLE Module for Development Tools 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.59.1
- kernel-obs-qa openSUSE Leap 15.5 5.14.21-150500.55.59.1
- kernel-source SLE Module for Development Tools 15 SP5, SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.59.1
suse advisories SUSE-SU-2024:1490-1SUSE-SU-2024:1480-1SUSE-SU-2024:1466-1SUSE-SU-2024:1321-1SUSE-SU-2024:1320-1
- git.kernel.org/stable/c/fb1084e63ee56958b0a56e17a50a4fd86445b9c1 commit
- git.kernel.org/stable/c/bb61224f6abc8e71bfdf06d7c984e23460875f5b commit
- git.kernel.org/stable/c/193b5a1c6c67c36b430989dc063fe7ea4e200a33 commit
- git.kernel.org/stable/c/7130a87ca32396eb9bf48b71a2d42259ae44c6c7 commit
- git.kernel.org/stable/c/3936e8714907cd55e37c7cc50e50229e4a9042e8 commit
- git.kernel.org/stable/c/980663f1d189eedafd18d80053d9cf3e2ceb5c8c commit
- git.kernel.org/stable/c/28df4646ad8b433340772edc90ca709cdefc53e2 commit
- git.kernel.org/stable/c/7ee29facd8a9c5a26079148e36bcf07141b3a6bc commit
Is CVE-2023-52566 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-52566 updated cvss 5.5
kernel: nilfs2: potential use after free in nilfs_gccache_submit_read_data()
-
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, +82 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.23% chance of exploitation in the next 30 days, higher than 14% of all scored CVEs (FIRST EPSS, 2026-11-20).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-416 Use After Free
- Technology feeds
References
-
git.kernel.org
/stable/c/fb1084e63ee56958b0a56e17a50a4fd86445b9c1
patch
-
git.kernel.org
/stable/c/bb61224f6abc8e71bfdf06d7c984e23460875f5b
patch
-
git.kernel.org
/stable/c/193b5a1c6c67c36b430989dc063fe7ea4e200a33
patch
-
git.kernel.org
/stable/c/7130a87ca32396eb9bf48b71a2d42259ae44c6c7
patch
-
git.kernel.org
/stable/c/3936e8714907cd55e37c7cc50e50229e4a9042e8
patch
-
git.kernel.org
/stable/c/980663f1d189eedafd18d80053d9cf3e2ceb5c8c
patch
-
git.kernel.org
/stable/c/28df4646ad8b433340772edc90ca709cdefc53e2
patch
-
git.kernel.org
/stable/c/7ee29facd8a9c5a26079148e36bcf07141b3a6bc
patch
Sources
- CVE List CVE-2023-52566
- NVD CVE-2023-52566
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.