net/sched: act_api: release tail references on DELACTION failure
- 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.112, 6.18.54, 7.2.8
- 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/sched: act_api: release tail references on DELACTION failure A batched RTM_DELACTION request takes a temporary reference on each action before attempting any deletion. tcf_action_delete() clears each processed slot and drops its temporary reference before attempting the deletion. If deletion fails, tca_action_gd() calls tcf_action_put_many() to release the remaining references, but its tcf_act_for_each_action() iterator stops at the first NULL slot. When a batch stops at an action bound to a filter, this leaks a reference on each subsequent action. A later delete of an unbound action can then return success without removing it from the IDR. Walk the full array in tcf_action_put_many() and skip NULL slots to release the references held on the unprocessed actions.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From a0e947c9ccffe47d45aca793d9e7fe4f4494e381 · fixed in 9eaba16f1b6ee19b249e6afd82c27f958d441458; From a0e947c9ccffe47d45aca793d9e7fe4f4494e381 · fixed in 1be63e4579af408d596f0f3165faf1a880631d3b; From a0e947c9ccffe47d45aca793d9e7fe4f4494e381 · fixed in 57b477e46ef2df3483f3488cc713c61c4b384aab; From a0e947c9ccffe47d45aca793d9e7fe4f4494e381 · fixed in 6e05e46fa821a5c1b281355f1f622ac76cb6080a
- Linux Linux
6.8
- KernelLinux
From 6.8.0 · fixed in 6.12.112; From 6.13.0 · fixed in 6.18.54; From 6.19.0 · fixed in 7.2.8