# CVE-2026-23309: tracing: Add NULL pointer check to trigger_data_free()

- 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.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-03-25T10:27:04.828Z
- Modified: 2026-06-17T10:21:18.170Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

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

tracing: Add NULL pointer check to trigger_data_free()

If trigger_data_alloc() fails and returns NULL, event_hist_trigger_parse()
jumps to the out_free error path. While kfree() safely handles a NULL
pointer, trigger_data_free() does not. This causes a NULL pointer
dereference in trigger_data_free() when evaluating
data->cmd_ops->set_filter.

Fix the problem by adding a NULL pointer check to trigger_data_free().

The problem was found by an experimental code review agent based on
gemini-3.1-pro while reviewing backports into v6.18.y.

(As written by CVE List.)

## Affected

- Linux Linux: from c10f0efe57728508d796ae4ba7abe4c14ec3d8ef before 13dcd9269e225e4c4ceabdaeebe2ce4661b54c6e; from 7e6556e9329bc484e9dcdab6e346d959267c0636 before 59c15b9cc453b74beb9f04c6c398717e73612dc3; from 9b0513905e0598b9f8cfccab8e47497aed5d935d before 42b380f97d65e76e7b310facd525f730272daf57; from 335dfe4bc6368e70e8c15419375cf609c4f85558 before 2ce8ece5a78da67834db7728edc801889a64f643; from e42efbe9754da78eafe11f6bd3ca9c8a094a752a before 477469223b2b840f436ce204333de87cb17e5d93; from 0550069cc25f513ce1f109c88f7c1f01d63297db before 457965c13f0837a289c9164b842d0860133f6274; from 6.1.165 before 6.1.167; from 6.6.128 before 6.6.130; from 6.12.75 before 6.12.77; from 6.18.14 before 6.18.17; from 6.19.4 before 6.19.7
- linux linux_kernel: from 6.1.165 before 6.1.167; from 6.6.128 before 6.6.130; from 6.12.75 before 6.12.77; from 6.18.14 before 6.18.17; from 6.19.4 before 6.19.7; 7.0

## References

- <https://git.kernel.org/stable/c/13dcd9269e225e4c4ceabdaeebe2ce4661b54c6e> (patch)
- <https://git.kernel.org/stable/c/59c15b9cc453b74beb9f04c6c398717e73612dc3> (patch)
- <https://git.kernel.org/stable/c/42b380f97d65e76e7b310facd525f730272daf57> (patch)
- <https://git.kernel.org/stable/c/2ce8ece5a78da67834db7728edc801889a64f643> (patch)
- <https://git.kernel.org/stable/c/477469223b2b840f436ce204333de87cb17e5d93> (patch)
- <https://git.kernel.org/stable/c/457965c13f0837a289c9164b842d0860133f6274> (patch)

## Sources

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

---

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