net: airoha: Do not read uninitialized fragment address in airoha_dev_xmit()
- 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 6.12.114, 6.18.33, 7.0.10
- 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
Summary
In the Linux kernel, the following vulnerability has been resolved: net: airoha: Do not read uninitialized fragment address in airoha_dev_xmit() The transmit loop in airoha_dev_xmit() reads fragment address and length during its final iteration, when the loop index equals skb_shinfo(skb)->nr_frags, at which point the fragment data is uninitialized. While these values are never consumed, the read itself is unsafe and may trigger a page fault. Fix this by avoiding the fragment read on the last iteration. Additionally, move the skb pointer from the first to the last used packet descriptor, so that airoha_qdma_tx_napi_poll() defers freeing the skb until the final descriptor is processed.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 23020f04932701d5c8363e60756f12b43b8ed752 · fixed in dba5f4959653e4c212beb746594952e8645d1115; From 23020f04932701d5c8363e60756f12b43b8ed752 · fixed in f670fa4b19ceddc6d215dda4997888ccba9bbc61; From 23020f04932701d5c8363e60756f12b43b8ed752 · fixed in d78c8ab7bd84952e053d0c622b7fc1b4ad8a19a3; From 23020f04932701d5c8363e60756f12b43b8ed752 · fixed in bde34e84edc8b5571fbde7e941e175a4293ee1eb
- Linux Linux
6.11
- KernelLinux
From 6.11.0 · fixed in 6.12.114; From 6.13.0 · fixed in 6.18.33; From 6.19.0 · fixed in 7.0.10