md/raid5: setup_conf: Fix null-ptr-def in error handling path
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
md/raid5: setup_conf: Fix null-ptr-def in error handling path
For raid5 setup_conf, if an error(eg. bioset_init fails) happens before 'conf->mddev = mddev', following error handling path could trigger a null-ptr-def problem:
free_conf log_exit raid5_has_ppl test_bit(MD_HAS_PPL, &conf->mddev->flags) // conf->mddev is NULL !
Fix it by initializing conf->mddev in advance.
| Product | Versions |
|---|---|
| Linux Linux | 3418d036c81dcb604b7c7c71b209d5890a8418aa to before 241748f206c38042dc289944bfa5527a2a714f6d Affected3418d036c81dcb604b7c7c71b209d5890a8418aa to before 6786c076ef4ff85b0ec9e9a9558153599b8316cd Affected3418d036c81dcb604b7c7c71b209d5890a8418aa to before c9fcd1bd5dc42f1cb2af5c08ea42261f383fd8ff Affected3418d036c81dcb604b7c7c71b209d5890a8418aa to before a11f75a0b24b761d50cf5d422e6b0776a3ce9006 Affected3418d036c81dcb604b7c7c71b209d5890a8418aa to before 0588354036c98f8d293f15462bbf0631b60bb9bb Affected3418d036c81dcb604b7c7c71b209d5890a8418aa to before 1acc56bd8896fe2bb1974fdc61398a4a40037a3e Affected3418d036c81dcb604b7c7c71b209d5890a8418aa to before e12457f33c3a5bd1270db85b05bf97a75c273680 Affected3418d036c81dcb604b7c7c71b209d5890a8418aa to before eba5f518701b1c7f2d883504f89c41611bd2de46 Affected |
| Linux Linux | 4.12 Affectedbefore 4.12 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/241748f206c38042dc289944bfa5527a2a714f6d
- https://git.kernel.org/stable/c/6786c076ef4ff85b0ec9e9a9558153599b8316cd
- https://git.kernel.org/stable/c/c9fcd1bd5dc42f1cb2af5c08ea42261f383fd8ff
- https://git.kernel.org/stable/c/a11f75a0b24b761d50cf5d422e6b0776a3ce9006
- https://git.kernel.org/stable/c/0588354036c98f8d293f15462bbf0631b60bb9bb
- https://git.kernel.org/stable/c/1acc56bd8896fe2bb1974fdc61398a4a40037a3e
- https://git.kernel.org/stable/c/e12457f33c3a5bd1270db85b05bf97a75c273680
- https://git.kernel.org/stable/c/eba5f518701b1c7f2d883504f89c41611bd2de46
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.