device property: initialize the remaining fields of fwnode_handle in fwnode_init()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.15.212, 6.1.178, 6.6.145, 6.12.96, 6.18.39, and 1 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: device property: initialize the remaining fields of fwnode_handle in fwnode_init() If a firmware node is allocated on the stack (for instance: temporary software node whose life-time we control) or on the heap - but using a non-zeroing allocation function - and initialized using fwnode_init(), its secondary pointer will contain uninitialized memory which likely will be neither NULL nor IS_ERR() and so may end up being dereferenced (for example: in dev_to_swnode()). Set fwnode->secondary to NULL on initialization. While at it: initialize the remaining fields of struct fwnode_handle too just to be sure. [ Fix typo in commit message. - Danilo ]
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 01bb86b380a306bd937c96da36f66429f3362137 · fixed in 0198d579948322cda5178b9672d448375a32f947; From 01bb86b380a306bd937c96da36f66429f3362137 · fixed in 173b61c9276c7b3a5fbcc63ae7aafc897fee1e18; From 01bb86b380a306bd937c96da36f66429f3362137 · fixed in f0b4e1cc8ad76baf49d898727eb52e91a4ef0544; From 01bb86b380a306bd937c96da36f66429f3362137 · fixed in c8542b68ba6ef4f61072098893a3f5b71c569b6c; From 01bb86b380a306bd937c96da36f66429f3362137 · fixed in 9c86a1f930bb2ddb85f867b4736716e82a4a4683; From 01bb86b380a306bd937c96da36f66429f3362137 · fixed in c81e2af41de6a159837c7129a4fc444ac6e48046; From 01bb86b380a306bd937c96da36f66429f3362137 · fixed in 7eba000621fff223dd7bab484d48918c7c77a307
- Linux Linux
5.11
- KernelLinux
From 5.11.0 · fixed in 5.15.212; From 5.16.0 · fixed in 6.1.178; From 6.2.0 · fixed in 6.6.145; From 6.7.0 · fixed in 6.12.96; From 6.13.0 · fixed in 6.18.39; From 6.19.0 · fixed in 7.1.5
References 7
git.kernel.org
- stable/c/0198d579948322cda5178b9672d448375a32f947
- stable/c/173b61c9276c7b3a5fbcc63ae7aafc897fee1e18
- stable/c/f0b4e1cc8ad76baf49d898727eb52e91a4ef0544
- stable/c/c8542b68ba6ef4f61072098893a3f5b71c569b6c
- stable/c/9c86a1f930bb2ddb85f867b4736716e82a4a4683
- stable/c/c81e2af41de6a159837c7129a4fc444ac6e48046
- stable/c/7eba000621fff223dd7bab484d48918c7c77a307