ice: fix potential NULL pointer deref in error path of ice_set_ringparam()
- 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.18.57, 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: ice: fix potential NULL pointer deref in error path of ice_set_ringparam() ice_set_ringparam nullifies tstamp_ring of temporary tx_rings, without clearing ICE_TX_RING_FLAGS_TXTIME bit. When ICE_TX_RING_FLAGS_TXTIME is set and the subsequent ice_setup_tx_ring() call fails, a NULL pointer dereference could happen in the unwinding sequence: ice_clean_tx_ring() -> ice_is_txtime_cfg() == true (ICE_TX_RING_FLAGS_TXTIME is set) -> ice_free_tx_tstamp_ring() -> ice_free_tstamp_ring() -> tstamp_ring->desc (NULL deref) Clear ICE_TX_RING_FLAGS_TXTIME bit to avoid the potential issue. Note that this potential issue is found by manual code review. Compile test only since unfortunately I don't have E830 devices.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From ccde82e909467abdf098a8ee6f63e1ecf9a47ce5 · fixed in c789649d4334a3767210071311d58bc8e74bdec1; From ccde82e909467abdf098a8ee6f63e1ecf9a47ce5 · fixed in c54e3c270384829336b2526033d44ce1aa6dc67c; From ccde82e909467abdf098a8ee6f63e1ecf9a47ce5 · fixed in fa28351f970fa5138c7c5dedfe5dea480a0ee065
- Linux Linux
6.18
- KernelLinux
From 6.18.0 · fixed in 6.18.57; From 6.19.0 · fixed in 7.0.10