CVE-2023-52566

nilfs2: fix potential use after free in nilfs_gccache_submit_read_data()

MEDIUM
5.5
CVSS Score
Published: March 2, 2024 at 09:59 PM UTC
Updated: June 17, 2026 at 06:43 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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. [[email protected]: NOTE added to the commit log]

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.30 ≤ v < 4.14.3272.6.30 ≤ v < 4.19.2962.6.30 ≤ v < 5.10.1982.6.30 ≤ v < 5.15.1342.6.30 ≤ v < 5.4.2582.6.30 ≤ v < 6.1.562.6.30 ≤ v < 6.5.62.6.30 ≤ v < 6.64.15 ≤ v < 4.19.2964.20 ≤ v < 5.4.2585.11 ≤ v < 5.15.1345.16 ≤ v < 6.1.565.5 ≤ v < 5.10.1986.2 ≤ v < 6.5.66.6 rc16.6 rc26.6 rc3a3d93f709e893187d301aa5458b2248db9f22bd1
Vendor states this is fixed in 193b5a1c6c67c36b430989dc063fe7ea4e200a33 (fixed)
Vendor states this is fixed in 28df4646ad8b433340772edc90ca709cdefc53e2 (fixed)
Vendor states this is fixed in 3936e8714907cd55e37c7cc50e50229e4a9042e8 (fixed)
Vendor states this is fixed in 7130a87ca32396eb9bf48b71a2d42259ae44c6c7 (fixed)
Vendor states this is fixed in 7ee29facd8a9c5a26079148e36bcf07141b3a6bc (fixed)
Vendor states this is fixed in 980663f1d189eedafd18d80053d9cf3e2ceb5c8c (fixed)
Vendor states this is fixed in bb61224f6abc8e71bfdf06d7c984e23460875f5b (fixed)
Vendor states this is fixed in fb1084e63ee56958b0a56e17a50a4fd86445b9c1 (fixed)
Vendor states this is fixed in 2.6.30 (unaffected)
Vendor states this is fixed in 4.14.327 (unaffected)
Vendor states this is fixed in 4.19.296 (unaffected)
Vendor states this is fixed in 5.10.198 (unaffected)
Vendor states this is fixed in 5.15.134 (unaffected)
Vendor states this is fixed in 5.4.258 (unaffected)
Vendor states this is fixed in 6.1.56 (unaffected)
Vendor states this is fixed in 6.5.6 (unaffected)
Vendor states this is fixed in 6.6 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/193b5a1c6c67c36b430989dc063fe7ea4e200a33
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/28df4646ad8b433340772edc90ca709cdefc53e2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3936e8714907cd55e37c7cc50e50229e4a9042e8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7130a87ca32396eb9bf48b71a2d42259ae44c6c7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7ee29facd8a9c5a26079148e36bcf07141b3a6bc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/980663f1d189eedafd18d80053d9cf3e2ceb5c8c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bb61224f6abc8e71bfdf06d7c984e23460875f5b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fb1084e63ee56958b0a56e17a50a4fd86445b9c1

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card