---
id: CVE-2024-41935
title: 'f2fs: fix to shrink read extent node in batches'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  f2fs: fix to shrink read extent node in batches

  We use rwlock to protect core structure data of extent tree during
  its shrink, however, if there is a huge number of ex…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 <
    e05d3eab90d6657bdcaa40ed129e9c767ed43188
  - >-
    Linux >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 <
    295b50e95e900da31ff237e46e04525fa799b2cf
  - >-
    Linux >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 <
    924f7dd1e832e4e4530d14711db223d2803f7b61
  - >-
    Linux >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 <
    3fc5d5a182f6a1f8bd4dc775feb54c369dd2c343
  - Linux 3.8
published: '2025-01-11'
updated: '2026-10-30'
sourceUpdated: '2026-10-30T12:18:49.612Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2024-41935'
references:
  - url: 'https://git.kernel.org/stable/c/e05d3eab90d6657bdcaa40ed129e9c767ed43188'
  - url: 'https://git.kernel.org/stable/c/295b50e95e900da31ff237e46e04525fa799b2cf'
  - url: 'https://git.kernel.org/stable/c/924f7dd1e832e4e4530d14711db223d2803f7b61'
  - url: 'https://git.kernel.org/stable/c/3fc5d5a182f6a1f8bd4dc775feb54c369dd2c343'
tags:
  - cve.org
epss: 0.00228
epssPercentile: 0.13636
ingestedAt: '2026-11-03T13:45:42.681Z'
---

## Overview

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

f2fs: fix to shrink read extent node in batches

We use rwlock to protect core structure data of extent tree during
its shrink, however, if there is a huge number of extent nodes in
extent tree, during shrink of extent tree, it may hold rwlock for
a very long time, which may trigger kernel hang issue.

This patch fixes to shrink read extent node in batches, so that,
critical region of the rwlock can be shrunk to avoid its extreme
long time hold.

## Affected

- `Linux >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 < e05d3eab90d6657bdcaa40ed129e9c767ed43188`
- `Linux >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 < 295b50e95e900da31ff237e46e04525fa799b2cf`
- `Linux >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 < 924f7dd1e832e4e4530d14711db223d2803f7b61`
- `Linux >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 < 3fc5d5a182f6a1f8bd4dc775feb54c369dd2c343`
- `Linux 3.8`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
