{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-139542",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.939Z",
        "datePublished": "2026-11-30T13:35:43.575Z",
        "dateUpdated": "2026-11-30T13:35:43.575Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:35:43.575Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmd: take reconfig_mutex when enabling PPL on an inactive array\n\nconsistency_policy_store() sets MD_HAS_PPL for an external-metadata array\nthat is not running yet, without holding reconfig_mutex.  But ->pers is\nonly assigned after pers->run() returns, so \"not running\" also covers an\nmd_run() that is in progress under the lock.\n\nIf the write lands inside raid5_run() after log_init() has decided not to\nset up PPL, or after a failed ppl_init_log() has cleared the flag, the\nflag ends up set with conf->log_private still NULL.  The next idle pass\nof raid5d() then does:\n\n  raid5d() -> handle_active_stripes() -> log_flush_stripe_to_raid()\n    -> ppl_write_stripe_run()\n\nand dereferences the NULL ppl_conf:\n\n  Oops: general protection fault, probably for non-canonical address\n  0xdffffc0000000002\n  KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]\n  RIP: 0010:ppl_write_stripe_run+0x60/0x1320 drivers/md/raid5-ppl.c:538\n\nTake reconfig_mutex around the update and refuse it with -EBUSY once the\narray is running, in which case ->change_consistency_policy() is the\nright interface."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/md/md.c"
                    ],
                    "versions": [
                        {
                            "version": "664aed04446c7f653d8acbe2cdf7989f28238524",
                            "lessThan": "0d7551660320b9605f36140e1b5657fd4b8812ed",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "664aed04446c7f653d8acbe2cdf7989f28238524",
                            "lessThan": "adfa3e105211e0099e1161afe487a1ca0622cdd1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "664aed04446c7f653d8acbe2cdf7989f28238524",
                            "lessThan": "0406e097bb3128290e8b757898864dba93a7a1be",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "664aed04446c7f653d8acbe2cdf7989f28238524",
                            "lessThan": "3b3b14a11548b7b4183609900d9aa53020140f0f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "664aed04446c7f653d8acbe2cdf7989f28238524",
                            "lessThan": "f4d615026172f5c8ce49b14794c63b8b6223ec9a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "664aed04446c7f653d8acbe2cdf7989f28238524",
                            "lessThan": "54c543e9162c02a4c6fbbff260ac4d238c612865",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "664aed04446c7f653d8acbe2cdf7989f28238524",
                            "lessThan": "28024177d04a3a76e193fbfb1abf064ad7b49d0a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "664aed04446c7f653d8acbe2cdf7989f28238524",
                            "lessThan": "900bf42e0ff8009f66ffd4a679c56264957019dd",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/md/md.c"
                    ],
                    "versions": [
                        {
                            "version": "4.12",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.12",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.275",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.226",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.119",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.65",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.6",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "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": "4.12",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.12",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.12",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.12",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.12",
                                    "versionEndExcluding": "6.12.119"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.12",
                                    "versionEndExcluding": "6.18.65"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.12",
                                    "versionEndExcluding": "7.3.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.12",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/0d7551660320b9605f36140e1b5657fd4b8812ed"
                },
                {
                    "url": "https://git.kernel.org/stable/c/adfa3e105211e0099e1161afe487a1ca0622cdd1"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0406e097bb3128290e8b757898864dba93a7a1be"
                },
                {
                    "url": "https://git.kernel.org/stable/c/3b3b14a11548b7b4183609900d9aa53020140f0f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f4d615026172f5c8ce49b14794c63b8b6223ec9a"
                },
                {
                    "url": "https://git.kernel.org/stable/c/54c543e9162c02a4c6fbbff260ac4d238c612865"
                },
                {
                    "url": "https://git.kernel.org/stable/c/28024177d04a3a76e193fbfb1abf064ad7b49d0a"
                },
                {
                    "url": "https://git.kernel.org/stable/c/900bf42e0ff8009f66ffd4a679c56264957019dd"
                }
            ],
            "title": "md: take reconfig_mutex when enabling PPL on an inactive array",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}