net/sched: cls_flower: avoid stale mask references after delete
NIST has received this entry but not started reviewing it.
In the Linux kernel, the following vulnerability has been resolved: net/sched: cls_flower: avoid stale mask references after delete Flower releases a mask reference when a filter is removed from the classifier. The filter object can remain alive while dump, walk, or hardware reoffload paths hold a reference to it. Those paths can then dereference f->mask after the mask has already been released. Keep the mask reference until the filter reference count reaches zero. Release the mask synchronously from the final __fl_put() while the caller still holds the tcf_proto reference, and leave the existing RCU work to free the mask. This keeps the mask available to every reader that still holds the filter. The filter is still removed from the classifier indexes immediately. Therefore, a deleted filter can temporarily retain an otherwise empty mask; fl_delete() uses the handle IDR, rather than the mask list, to determine whether the classifier has become empty. Failed mask assignment can leave fnew->mask as an error or borrowed pointer without an owned mask reference. Clear it before the common failure path so the final put cannot release an unowned reference. This fix does not add fields, snapshots, or per-filter memory.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from 92149190067dc1ba656ce63a328c4b88b34e3f09, before 282807a0ecb8fe5beba8e4983e4330e03311e55a; from 92149190067dc1ba656ce63a328c4b88b34e3f09, before a2b1492931d41202e03ea55fb0a855f8d19b618e; from 92149190067dc1ba656ce63a328c4b88b34e3f09, before 5f001b9ffe36361d0f07e776b05827c3139c884b; from 92149190067dc1ba656ce63a328c4b88b34e3f09, before 7def39be0ecaec241699ed001c9d669bf742465e; from 92149190067dc1ba656ce63a328c4b88b34e3f09, before 47ae95cdcb9b1d6770c624ae778828b1d698801a; from 92149190067dc1ba656ce63a328c4b88b34e3f09, before cdffcb89d84455158d057a6baa87a67225a7f062; and 2 more | 282807a0ecb8fe5beba8e4983e4330e03311e55a; a2b1492931d41202e03ea55fb0a855f8d19b618e; 5f001b9ffe36361d0f07e776b05827c3139c884b; 7def39be0ecaec241699ed001c9d669bf742465e |
| Linux Linux | Software | 5.2 | not recorded |
The 7.1 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | On the machine | The attacker needs access to the computer itself, for example a login or a file they can get you to open. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | None | Nothing can be changed. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 1.8 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.2 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 8 sources for this flaw, none tagged as a vendor patch.