{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2024-27389",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-02-25T13:47:42.676Z",
        "datePublished": "2024-05-01T13:05:09.224Z",
        "dateUpdated": "2026-08-05T11:29:24.931Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T11:29:24.931Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\npstore: inode: Only d_invalidate() is needed\n\nUnloading a modular pstore backend with records in pstorefs would\ntrigger the dput() double-drop warning:\n\n  WARNING: CPU: 0 PID: 2569 at fs/dcache.c:762 dput.part.0+0x3f3/0x410\n\nUsing the combo of d_drop()/dput() (as mentioned in\nDocumentation/filesystems/vfs.rst) isn't the right approach here, and\nleads to the reference counting problem seen above. Use d_invalidate()\nand update the code to not bother checking for error codes that can\nnever happen.\n\n---"
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The vulnerability lives in the pstorefs VFS layer (fs/pstore/inode.c) and is reached only through local interfaces — an open file descriptor on a pstorefs record plus pstore backend teardown (module removal, driver unbind, or MTD device-removal notifier). No network or adjacent-network path exists.\nAC:L - The double-drop is deterministic, not a race: every record belonging to the unregistering backend takes the buggy path unconditionally, and keeping a record file open across teardown is fully under the attacker's control. No unpredictable memory layout or victim state is required to reach the underflow.\nPR:L - Consistent with this repo's scoring of driver-removal/rmmod-triggered UAFs, a local unprivileged process supplies the decisive half of the exploit — holding the fd, then driving slab reclaim of the freed pstore_private/dentry and consuming the primitives via read()/close(); backend unregistration also occurs on non-rmmod paths such as mtdpstore_notify_remove() and platform-driver removal during normal system operation.\nUI:N - No victim action is needed — the attacker performs the file open, the backend teardown, and the subsequent read()/close() that dereference the freed objects. Nothing requires a second user to interact with the system.\nS:U - The corruption is confined to kernel dcache and slab objects within the same kernel security authority; there is no VM, IOMMU, or sandbox boundary crossed. This is standard in-kernel memory corruption.\nC:H - The premature dentry kill evicts the inode and frees pstore_private/pstore_record/record->buf while an open file still points at them via seq_file->private, so pstore_file_read() calls simple_read_from_buffer() with a freed, reclaimable source pointer and length — a controllable arbitrary kernel-memory read into userspace.\nI:H - The dentry refcount underflow frees the dentry while a file descriptor still holds it, so the later fput()/path_put()/dput() performs lockref decrements and d_child/d_subdirs list manipulation on reclaimed slab memory, yielding a write primitive suitable for heap-spray exploitation.\nA:H - At minimum the bug triggers WARNING at fs/dcache.c:762, which is fatal on the panic_on_warn configurations common in Android, hardened, and cloud kernels; with an open record file it produces a genuine dcache/slab use-after-free that reliably oopses or panics the kernel."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/pstore/inode.c"
                    ],
                    "versions": [
                        {
                            "version": "609e28bb139e53621521130f0d4aea27a725d465",
                            "lessThan": "d0ee2a8adb6673382cce8a4280e1ca0849b3b783",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "609e28bb139e53621521130f0d4aea27a725d465",
                            "lessThan": "db6e5e16f1ee9e3b01d2f71c7f0ba945f4bf0f4e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "609e28bb139e53621521130f0d4aea27a725d465",
                            "lessThan": "4cdf9006fc095af71da80e9b5f48a32e991b9ed3",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "609e28bb139e53621521130f0d4aea27a725d465",
                            "lessThan": "cb9e802e49c24eeb3af35e9e8c04d526f35f112a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "609e28bb139e53621521130f0d4aea27a725d465",
                            "lessThan": "340682ed1932b8e3bd0bfc6c31a0c6354eb57cc6",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "609e28bb139e53621521130f0d4aea27a725d465",
                            "lessThan": "a43e0fc5e9134a46515de2f2f8d4100b74e50de3",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/pstore/inode.c"
                    ],
                    "versions": [
                        {
                            "version": "5.8",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.8",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.209",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.83",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.23",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.7.11",
                            "lessThanOrEqual": "6.7.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.8.2",
                            "lessThanOrEqual": "6.8.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.9",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "5.15.209"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "6.1.83"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "6.6.23"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "6.7.11"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "6.8.2"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "6.9"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/d0ee2a8adb6673382cce8a4280e1ca0849b3b783"
                },
                {
                    "url": "https://git.kernel.org/stable/c/db6e5e16f1ee9e3b01d2f71c7f0ba945f4bf0f4e"
                },
                {
                    "url": "https://git.kernel.org/stable/c/4cdf9006fc095af71da80e9b5f48a32e991b9ed3"
                },
                {
                    "url": "https://git.kernel.org/stable/c/cb9e802e49c24eeb3af35e9e8c04d526f35f112a"
                },
                {
                    "url": "https://git.kernel.org/stable/c/340682ed1932b8e3bd0bfc6c31a0c6354eb57cc6"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a43e0fc5e9134a46515de2f2f8d4100b74e50de3"
                }
            ],
            "title": "pstore: inode: Only d_invalidate() is needed",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2024-27389",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2024-05-09T18:38:29.598548Z"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-07-05T17:22:49.585Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T00:34:52.207Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://git.kernel.org/stable/c/db6e5e16f1ee9e3b01d2f71c7f0ba945f4bf0f4e",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/4cdf9006fc095af71da80e9b5f48a32e991b9ed3",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/cb9e802e49c24eeb3af35e9e8c04d526f35f112a",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/340682ed1932b8e3bd0bfc6c31a0c6354eb57cc6",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/a43e0fc5e9134a46515de2f2f8d4100b74e50de3",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}