# CVE-2025-40010: afs: Fix potential null pointer dereference in afs_put_server

- Severity: not scored yet
- 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.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2025-10-20T15:26:55.874Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## Description

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

afs: Fix potential null pointer dereference in afs_put_server

afs_put_server() accessed server->debug_id before the NULL check, which
could lead to a null pointer dereference. Move the debug_id assignment,
ensuring we never dereference a NULL server pointer.

(As written by CVE List.)

## Affected

- Linux Linux: from 2757a4dc184997c66ef1de32636f73b9f21aac14 before 7b8381f3c405b864a814d747e526e078c3ef4bc2; from 2757a4dc184997c66ef1de32636f73b9f21aac14 before cab278cead49a547ac84c3e185f446f381303eae; from 2757a4dc184997c66ef1de32636f73b9f21aac14 before a13dbc5e20c7284b82afe6f08debdecf51d2ca04; from 2757a4dc184997c66ef1de32636f73b9f21aac14 before 41782c44bb8431c43043129ae42f2ba614938479; from 2757a4dc184997c66ef1de32636f73b9f21aac14 before 9158c6bb245113d4966df9b2ba602197a379412e; 6.0 (not affected: before 6.0; from 6.1.155 up to 6.1.*; from 6.6.109 up to 6.6.*; from 6.12.50 up to 6.12.*; from 6.16.10 up to 6.16.*; from 6.17 up to *)

## References

- <https://git.kernel.org/stable/c/7b8381f3c405b864a814d747e526e078c3ef4bc2>
- <https://git.kernel.org/stable/c/cab278cead49a547ac84c3e185f446f381303eae>
- <https://git.kernel.org/stable/c/a13dbc5e20c7284b82afe6f08debdecf51d2ca04>
- <https://git.kernel.org/stable/c/41782c44bb8431c43043129ae42f2ba614938479>
- <https://git.kernel.org/stable/c/9158c6bb245113d4966df9b2ba602197a379412e>

## Sources

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

---

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