CVE-2025-37950

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-37950
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37950.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-37950
Downstream
Published
2025-05-20T16:01:45Z
Modified
2025-10-22T11:27:03.547189Z
Summary
ocfs2: fix panic in failed foilio allocation
Details

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

ocfs2: fix panic in failed foilio allocation

commit 7e119cff9d0a ("ocfs2: convert wpages to wfolios") and commit 9a5e08652dc4b ("ocfs2: use an array of folios instead of an array of pages") save -ENOMEM in the folio array upon allocation failure and call the folio array free code.

The folio array free code expects either valid folio pointers or NULL. Finding the -ENOMEM will result in a panic. Fix by NULLing the error folio entry.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
7e119cff9d0a21e39e53c7d27addc31f4b8c0000
Fixed
80d18f060d5bdf2c5eb3d1d00dcb744d6a879222
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
7e119cff9d0a21e39e53c7d27addc31f4b8c0000
Fixed
31d4cd4eb2f8d9b87ebfa6a5e443a59e3b3d7b8c

Affected versions

v6.*

v6.13
v6.13-rc7
v6.14
v6.14-rc1
v6.14-rc2
v6.14-rc3
v6.14-rc4
v6.14-rc5
v6.14-rc6
v6.14-rc7
v6.14.1
v6.14.2
v6.14.3
v6.14.4
v6.14.5
v6.14.6
v6.15-rc1
v6.15-rc2
v6.15-rc3
v6.15-rc4
v6.15-rc5

Database specific

vanir_signatures

[
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@80d18f060d5bdf2c5eb3d1d00dcb744d6a879222",
        "target": {
            "function": "ocfs2_grab_folios",
            "file": "fs/ocfs2/alloc.c"
        },
        "signature_type": "Function",
        "deprecated": false,
        "id": "CVE-2025-37950-1d5a8c46",
        "signature_version": "v1",
        "digest": {
            "function_hash": "333763447139600697202693167380450674985",
            "length": 678.0
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@80d18f060d5bdf2c5eb3d1d00dcb744d6a879222",
        "target": {
            "file": "fs/ocfs2/alloc.c"
        },
        "signature_type": "Line",
        "deprecated": false,
        "id": "CVE-2025-37950-34f8e6fa",
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "144678457068231383065854501970806941105",
                "65429033844744347620533114215816583874",
                "210531963846415129768245332192376536004",
                "211722131164659435153688479657432128867"
            ],
            "threshold": 0.9
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@31d4cd4eb2f8d9b87ebfa6a5e443a59e3b3d7b8c",
        "target": {
            "file": "fs/ocfs2/alloc.c"
        },
        "signature_type": "Line",
        "deprecated": false,
        "id": "CVE-2025-37950-88fb6a35",
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "144678457068231383065854501970806941105",
                "65429033844744347620533114215816583874",
                "210531963846415129768245332192376536004",
                "211722131164659435153688479657432128867"
            ],
            "threshold": 0.9
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@31d4cd4eb2f8d9b87ebfa6a5e443a59e3b3d7b8c",
        "target": {
            "function": "ocfs2_grab_folios",
            "file": "fs/ocfs2/alloc.c"
        },
        "signature_type": "Function",
        "deprecated": false,
        "id": "CVE-2025-37950-894f57ac",
        "signature_version": "v1",
        "digest": {
            "function_hash": "333763447139600697202693167380450674985",
            "length": 678.0
        }
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.14.0
Fixed
6.14.7