{"id":"CVE-2026-139542","aliases":["CVE-2026-139542"],"related":[],"kind":"vulnerability","state":"published","title":"md: take reconfig_mutex when enabling PPL on an inactive array","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:35:43.575Z","modified":"2026-11-30T14:19:31.127Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"664aed04446c7f653d8acbe2cdf7989f28238524","fixed":"0d7551660320b9605f36140e1b5657fd4b8812ed","status":"affected"},{"type":"git","introduced":"664aed04446c7f653d8acbe2cdf7989f28238524","fixed":"adfa3e105211e0099e1161afe487a1ca0622cdd1","status":"affected"},{"type":"git","introduced":"664aed04446c7f653d8acbe2cdf7989f28238524","fixed":"0406e097bb3128290e8b757898864dba93a7a1be","status":"affected"},{"type":"git","introduced":"664aed04446c7f653d8acbe2cdf7989f28238524","fixed":"3b3b14a11548b7b4183609900d9aa53020140f0f","status":"affected"},{"type":"git","introduced":"664aed04446c7f653d8acbe2cdf7989f28238524","fixed":"f4d615026172f5c8ce49b14794c63b8b6223ec9a","status":"affected"},{"type":"git","introduced":"664aed04446c7f653d8acbe2cdf7989f28238524","fixed":"54c543e9162c02a4c6fbbff260ac4d238c612865","status":"affected"},{"type":"git","introduced":"664aed04446c7f653d8acbe2cdf7989f28238524","fixed":"28024177d04a3a76e193fbfb1abf064ad7b49d0a","status":"affected"},{"type":"git","introduced":"664aed04446c7f653d8acbe2cdf7989f28238524","fixed":"900bf42e0ff8009f66ffd4a679c56264957019dd","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.12","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/0d7551660320b9605f36140e1b5657fd4b8812ed","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/adfa3e105211e0099e1161afe487a1ca0622cdd1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0406e097bb3128290e8b757898864dba93a7a1be","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3b3b14a11548b7b4183609900d9aa53020140f0f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f4d615026172f5c8ce49b14794c63b8b6223ec9a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/54c543e9162c02a4c6fbbff260ac4d238c612865","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/28024177d04a3a76e193fbfb1abf064ad7b49d0a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/900bf42e0ff8009f66ffd4a679c56264957019dd","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139542","url":"https://www.cve.org/CVERecord?id=CVE-2026-139542","licence":"CVE Terms of Use","modified":"2026-11-30T13:35:43.575Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139542","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139542","licence":"Public domain","modified":"2026-11-30T14:19:31.127Z"}],"updatedAt":"2026-11-30T14:33:25.564Z","epss":{"score":0.0021,"percentile":0.11892,"date":"2026-12-01T12:00:22.000Z"}}