CVE-2023-52566

Medium

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]

SeverityMedium
CVSS5.5
Exploit probability—
ProductLinux Kernel
PublishedMar 2, 2024
First seenMar 2, 2024

How to fix

Update
  • linux linux_kernel4.14.327, 4.19.296, 5.4.258, 5.10.198, 5.15.134, 6.1.56, 6.5.6 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernel2.6.30 ≤ v < 4.14.327, 4.15 ≤ v < 4.19.296, 4.20 ≤ v < 5.4.258, 5.5 ≤ v < 5.10.198, 5.11 ≤ v < 5.15.134, 5.16 ≤ v < 6.1.56, 6.2 ≤ v < 6.5.6, 6.64.14.327, 4.19.296, 5.4.258, 5.10.198, 5.15.134, 6.1.56, 6.5.6

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.