ext4: replace BUG_ON with proper error handling in ext4_read_inline_folio (Linux Linux)

CVE-2026-31451
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.13 % · percentile 2 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: ext4: replace BUG_ON with proper error handling in ext4_read_inline_folio Replace BUG_ON() with proper error handling when inline data size exceeds PAGE_SIZE. This prevents kernel panic and allows the system to continue running while properly reporting the filesystem corruption. The error is logged via ext4_error_inode(), the buffer head is released to prevent memory leak, and -EFSCORRUPTED is returned to indicate filesystem corruption.

Weaknesses (CWE)

  • CWE-617 — Reachable Assertion

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 46c7f254543dedcf134ad05091ed2b935a9a597d < 3462a3f0716d27af51896dc8688bcf0628fb17ee ; affected 46c7f254543dedcf134ad05091ed2b935a9a597d < 636e8d85a36ab6c31aafd04ee66a69b18eebee7b ; affected 46c7f254543dedcf134ad05091ed2b935a9a597d < af25a6affeac4919e8d8c5cccc01a9d53478447e ; affected 46c7f254543dedcf134ad05091ed2b935a9a597d < 65c6c30ce6362c1c684568744ea510c921a756cd ; affected 46c7f254543dedcf134ad05091ed2b935a9a597d < d4b3f370c3d8f7ce565d4a718572c9f7c12f77ed ; affected 46c7f254543dedcf134ad05091ed2b935a9a597d < 823849a26af089ffc5dfdd2ae4b9d446b46a0cda
Linux · Linuxaffected 3.8 ; unaffected 0 < 3.8 ; unaffected 5.10.260 ≤ 5.10.* ; unaffected 5.15.211 ≤ 5.15.* ; unaffected 6.1.177 ≤ 6.1.* ; unaffected 6.6.131 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD