# CVE-2024-39470: eventfs: Fix a possible null pointer dereference in eventfs_find_events()

- 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.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2024-06-25T14:28:56.258Z
- Modified: 2026-06-17T07:41:59.000Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

eventfs: Fix a possible null pointer dereference in eventfs_find_events()

In function eventfs_find_events,there is a potential null pointer
that may be caused by calling update_events_attr which will perform
some operations on the members of the ei struct when ei is NULL.

Hence,When ei->is_freed is set,return NULL directly.

(As written by CVE List.)

## Affected

- Linux Linux: from 628adb842bd5e1c2c598534a7a022b8235289de6 before 5ade5fbdbbb1f023bb70730ba4d74146c8bc7eb9; from 8186fff7ab649085e2c60d032d9a20a85af1d87c before 7a1b2d138189375ed1dcd7d0851118230221bd1d; from 8186fff7ab649085e2c60d032d9a20a85af1d87c before d4e9a968738bf66d3bb852dd5588d4c7afd6d7f4; 9c2ac5e0ea7899411fd900d4681890722a020735; from 6.6.18 before 6.6.34; from 6.7.4 before 6.8; 6.8 (not affected: before 6.8; from 6.6.34 up to 6.6.*; from 6.9.5 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 6.6.18 before 6.6.34; from 6.8 before 6.9.5

## References

- <https://git.kernel.org/stable/c/5ade5fbdbbb1f023bb70730ba4d74146c8bc7eb9> (patch)
- <https://git.kernel.org/stable/c/7a1b2d138189375ed1dcd7d0851118230221bd1d> (patch)
- <https://git.kernel.org/stable/c/d4e9a968738bf66d3bb852dd5588d4c7afd6d7f4> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2024-39470 · Whole record: https://cve.day/CVE-2024-39470.json · Rebuilt by cve.day 2026-11-25T22:58:42.227Z
