# CVE-2026-22987: net/sched: act_api: avoid dereferencing ERR_PTR in tcf_idrinfo_destroy

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-01-23T15:24:08.865Z
- Modified: 2026-06-17T10:20:39.477Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

net/sched: act_api: avoid dereferencing ERR_PTR in tcf_idrinfo_destroy

syzbot reported a crash in tc_act_in_hw() during netns teardown where
tcf_idrinfo_destroy() passed an ERR_PTR(-EBUSY) value as a tc_action
pointer, leading to an invalid dereference.

Guard against ERR_PTR entries when iterating the action IDR so teardown
does not call tc_act_in_hw() on an error pointer.

(As written by CVE List.)

## Affected

- Linux Linux: from 84a7d6797e6a03705e6b48c613fa424662049d87 before 67550a1130b647bb0d093c9c0a810c69aa6a30a8; from 84a7d6797e6a03705e6b48c613fa424662049d87 before adb25a46dc0a43173f5ea5f5f58fc8ba28970c7c; 6.17 (not affected: before 6.17; from 6.18.6 up to 6.18.*; from 6.19 up to *)
- linux linux_kernel: from 6.17 before 6.18.6; 6.19

## References

- <https://git.kernel.org/stable/c/67550a1130b647bb0d093c9c0a810c69aa6a30a8> (patch)
- <https://git.kernel.org/stable/c/adb25a46dc0a43173f5ea5f5f58fc8ba28970c7c> (patch)

## Sources

- CVE List: [CVE-2026-22987](https://www.cve.org/CVERecord?id=CVE-2026-22987), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-22987](https://nvd.nist.gov/vuln/detail/CVE-2026-22987), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-22987 · Whole record: https://cve.day/CVE-2026-22987.json · Rebuilt by cve.day 2026-11-25T22:59:13.143Z
