---
id: CVE-2025-40333
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  f2fs: fix infinite loop in __insert_extent_tree()

  When we get wrong extent info data, and look up extent_node in rb tree,
  it will cause infinite loop (CONFIG_F2FS_CHEC…
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  f2fs: fix infinite loop in __insert_extent_tree()

  When we get wrong extent info data, and look up extent_node in rb tree,
  it will cause infinite loop (CONFIG_F2FS_CHEC…
severity: none
published: '2025-12-09'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T22:10:00.210'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-40333'
references:
  - url: 'https://git.kernel.org/stable/c/23361bd54966b437e1ed3eb1a704572f4b279e58'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/765f8816d3959ef1f3f7f85e2af748594d091f40'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/c0b9951bb2668d67eb4817bb23fc109abc08c075'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/f4c31adcb2a0556f43776d4e51a67de88d7fb9ee'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
epss: 0.00221
epssPercentile: 0.11774
ingestedAt: '2026-10-14T23:00:02.031Z'
---

## Overview

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

f2fs: fix infinite loop in __insert_extent_tree()

When we get wrong extent info data, and look up extent_node in rb tree,
it will cause infinite loop (CONFIG_F2FS_CHECK_FS=n). Avoiding this by
return NULL and print some kernel messages in that case.

## Remediation

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