CVE-2025-21817

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-21817
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21817.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21817
Downstream
Published
2025-02-27T20:04:15Z
Modified
2025-10-17T21:37:05.142247Z
Summary
block: mark GFP_NOIO around sysfs ->store()
Details

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

block: mark GFP_NOIO around sysfs ->store()

sysfs ->store is called with queue freezed, meantime we have several ->store() callbacks(updatenrrequests, wbt, scheduler) to allocate memory with GFP_KERNEL which may run into direct reclaim code path, then potential deadlock can be caused.

Fix the issue by marking NOIO around sysfs ->store()

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
8985da5481562e96b95e94ed8e5cc9b6565eb82b
Fixed
2566ce907e5d5db8a039647208e029ce559baa31
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c99f66e4084a62a2cc401c4704a84328aeddc9ec
Fixed
7c0be4ead1f8f5f8be0803f347de0de81e3b8e1c

Affected versions

v6.*

v6.13.2

Database specific

vanir_signatures

[
    {
        "id": "CVE-2025-21817-0b68311c",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "target": {
            "file": "block/blk-sysfs.c"
        },
        "digest": {
            "line_hashes": [
                "47472677641565857740614641873863179114",
                "44746029695093035228684109968286025804",
                "193581620622175902807937353688398167514",
                "157553854453494434297053014910033430602",
                "298228216587340091691863553404250202825",
                "265690832766793263994835626207440529721",
                "72783263008138504786373337486135179775",
                "242195766447344416894534652078615208447",
                "58328961878065719901847746294171044026"
            ],
            "threshold": 0.9
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2566ce907e5d5db8a039647208e029ce559baa31"
    },
    {
        "id": "CVE-2025-21817-36a82f5b",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "block/blk-sysfs.c",
            "function": "queue_attr_store"
        },
        "digest": {
            "function_hash": "235298652439640370912151023272417634155",
            "length": 795.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2566ce907e5d5db8a039647208e029ce559baa31"
    },
    {
        "id": "CVE-2025-21817-b790aa97",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "target": {
            "file": "block/blk-sysfs.c"
        },
        "digest": {
            "line_hashes": [
                "47472677641565857740614641873863179114",
                "44746029695093035228684109968286025804",
                "193581620622175902807937353688398167514",
                "157553854453494434297053014910033430602",
                "298228216587340091691863553404250202825",
                "265690832766793263994835626207440529721",
                "72783263008138504786373337486135179775",
                "242195766447344416894534652078615208447",
                "58328961878065719901847746294171044026"
            ],
            "threshold": 0.9
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7c0be4ead1f8f5f8be0803f347de0de81e3b8e1c"
    },
    {
        "id": "CVE-2025-21817-d1c8bb5c",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "block/blk-sysfs.c",
            "function": "queue_attr_store"
        },
        "digest": {
            "function_hash": "235298652439640370912151023272417634155",
            "length": 795.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7c0be4ead1f8f5f8be0803f347de0de81e3b8e1c"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.13.2
Fixed
6.13.3