{"id":"CVE-2026-99546","summary":"net/sched: cls_flower: avoid stale mask references after delete","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: cls_flower: avoid stale mask references after delete\n\nFlower releases a mask reference when a filter is removed from the\nclassifier. The filter object can remain alive while dump, walk, or\nhardware reoffload paths hold a reference to it. Those paths can then\ndereference f-\u003emask after the mask has already been released.\n\nKeep the mask reference until the filter reference count reaches zero.\nRelease the mask synchronously from the final __fl_put() while the caller\nstill holds the tcf_proto reference, and leave the existing RCU work to\nfree the mask. This keeps the mask available to every reader that still\nholds the filter.\n\nThe filter is still removed from the classifier indexes immediately.\nTherefore, a deleted filter can temporarily retain an otherwise empty\nmask; fl_delete() uses the handle IDR, rather than the mask list, to\ndetermine whether the classifier has become empty.\n\nFailed mask assignment can leave fnew-\u003emask as an error or borrowed\npointer without an owned mask reference. Clear it before the common\nfailure path so the final put cannot release an unowned reference.\n\nThis fix does not add fields, snapshots, or per-filter memory.","modified":"2026-11-19T17:01:26.987422672Z","published":"2026-11-19T14:45:05.285Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99546.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0cc691a899a43e8ecbddfe657198b3f6935122f0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/47ae95cdcb9b1d6770c624ae778828b1d698801a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/58f7989da6e715ce834ac861b7ba6ae9f9bdb098"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cdffcb89d84455158d057a6baa87a67225a7f062"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99546.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99546"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"92149190067dc1ba656ce63a328c4b88b34e3f09"},{"fixed":"47ae95cdcb9b1d6770c624ae778828b1d698801a"},{"fixed":"cdffcb89d84455158d057a6baa87a67225a7f062"},{"fixed":"0cc691a899a43e8ecbddfe657198b3f6935122f0"},{"fixed":"58f7989da6e715ce834ac861b7ba6ae9f9bdb098"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99546.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.2.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.61"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99546.json"}}],"schema_version":"1.9.2"}