# CVE-2024-53131: nilfs2: fix null-ptr-deref in block\_touch\_buffer tracepoint

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-12-04T14:20:37.455Z
- **Modified:** 2026-06-17T08:08:22.760Z

## Who should check

- Anyone running Linux \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< 085556bf8c70e2629e02e79268dac3016a08b8bf; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< 6438f3f42cda825f6f59b4e45ac3a1da28a6f2c9; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< b017697a517f8779ada4e8ce1c2c75dbf60a2636; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< 19c71cdd77973f99a9adc3190130bc3aa7ae5423; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< 3b2a4fd9bbee77afdd3ed5a05a0c02b6cde8d3b9; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< 59b49ca67cca7b007a5afd3de0283c8008157665; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< 77e47f89d32c2d72eb33d0becbce7abe14d061f4; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< cd45e963e44b0f10d90b9e6c0e8b4f47f3c92471
- Anyone running Linux 3.9

## Description

In the Linux kernel, the following vulnerability has been resolved:

nilfs2: fix null-ptr-deref in block\_touch\_buffer tracepoint

Patch series "nilfs2: fix null-ptr-deref bugs on block tracepoints".

This series fixes null pointer dereference bugs that occur when using
nilfs2 and two block-related tracepoints.


This patch (of 2):

It has been reported that when using "block:block\_touch\_buffer"
tracepoint, touch\_buffer() called from \_\_nilfs\_get\_folio\_block() causes a
NULL pointer dereference, or a general protection fault when KASAN is
enabled.

This happens because since the tracepoint was added in touch\_buffer(), it
references the dev\_t member bh-\>b\_bdev-\>bd\_dev regardless of whether the
buffer head has a pointer to a block\_device structure.  In the current
implementation, the block\_device structure is set after the function
returns to the caller.

Here, touch\_buffer() is used to mark the folio/page that owns the buffer
head as accessed, but the common search helper for folio/page used by the
caller function was optimized to mark the folio/page as accessed when it
was reimplemented a long time ago, eliminating the need to call
touch\_buffer() here in the first place.

So this solves the issue by eliminating the touch\_buffer() call itself.

## Affected and fixed versions

- Linux: \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< 085556bf8c70e2629e02e79268dac3016a08b8bf; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< 6438f3f42cda825f6f59b4e45ac3a1da28a6f2c9; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< b017697a517f8779ada4e8ce1c2c75dbf60a2636; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< 19c71cdd77973f99a9adc3190130bc3aa7ae5423; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< 3b2a4fd9bbee77afdd3ed5a05a0c02b6cde8d3b9; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< 59b49ca67cca7b007a5afd3de0283c8008157665; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< 77e47f89d32c2d72eb33d0becbce7abe14d061f4; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< cd45e963e44b0f10d90b9e6c0e8b4f47f3c92471 (cvelist)
- Linux: 3.9 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-53131. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-53131.md
Affected: Linux >= 5305cb830834549b9203ad4d009ad5483c5e293f, < 085556bf8c70e2629e02e79268dac3016a08b8bf; >= 5305cb830834549b9203ad4d009ad5483c5e293f, < 6438f3f42cda825f6f59b4e45ac3a1da28a6f2c9; >= 5305cb830834549b9203ad4d009ad5483c5e293f, < b017697a517f8779ada4e8ce1c2c75dbf60a2636; >= 5305cb830834549b9203ad4…
Fixed in: Linux 085556bf8c70e2629e02e79268dac3016a08b8bf, Linux 6438f3f42cda825f6f59b4e45ac3a1da28a6f2c9, Linux 19c71cdd77973f99a9adc3190130bc3aa7ae5423, Linux 3b2a4fd9bbee77afdd3ed5a05a0c02b6cde8d3b9, Linux 59b49ca67cca7b007a5afd3de0283c8008157665, Linux 77e47f89d32c2d72eb33d0becbce7abe14d061f4

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-53131 being exploited?

There is no confirmed exploitation: CVE-2024-53131 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-53131?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-53131?

Linux \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< 085556bf8c70e2629e02e79268dac3016a08b8bf; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< 6438f3f42cda825f6f59b4e45ac3a1da28a6f2c9; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< b017697a517f8779ada4e8ce1c2c75dbf60a2636; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< 19c71cdd77973f99a9adc3190130bc3aa7ae5423; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< 3b2a4fd9bbee77afdd3ed5a05a0c02b6cde8d3b9; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< 59b49ca67cca7b007a5afd3de0283c8008157665; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< 77e47f89d32c2d72eb33d0becbce7abe14d061f4; \>= 5305cb830834549b9203ad4d009ad5483c5e293f, \< cd45e963e44b0f10d90b9e6c0e8b4f47f3c92471; Linux 3.9.

### Is there a fix for CVE-2024-53131?

Yes. Fixed in Linux 085556bf8c70e2629e02e79268dac3016a08b8bf, Linux 6438f3f42cda825f6f59b4e45ac3a1da28a6f2c9, Linux 19c71cdd77973f99a9adc3190130bc3aa7ae5423, Linux 3b2a4fd9bbee77afdd3ed5a05a0c02b6cde8d3b9, Linux 59b49ca67cca7b007a5afd3de0283c8008157665, Linux 77e47f89d32c2d72eb33d0becbce7abe14d061f4. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-53131?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/085556bf8c70e2629e02e79268dac3016a08b8bf>
- patch: <https://git.kernel.org/stable/c/3b2a4fd9bbee77afdd3ed5a05a0c02b6cde8d3b9>
- patch: <https://git.kernel.org/stable/c/59b49ca67cca7b007a5afd3de0283c8008157665>
- patch: <https://git.kernel.org/stable/c/77e47f89d32c2d72eb33d0becbce7abe14d061f4>
- patch: <https://git.kernel.org/stable/c/cd45e963e44b0f10d90b9e6c0e8b4f47f3c92471>
- other: <https://git.kernel.org/stable/c/6438f3f42cda825f6f59b4e45ac3a1da28a6f2c9>
- other: <https://git.kernel.org/stable/c/b017697a517f8779ada4e8ce1c2c75dbf60a2636>
- other: <https://git.kernel.org/stable/c/19c71cdd77973f99a9adc3190130bc3aa7ae5423>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-53131>

HTML: <https://flawdb.com/CVE-2024-53131> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-53131>
