# CVE-2022-49012: afs: Fix server->active leak in afs_put_server

- 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 11% of CVEs (2026-12-02)
- Published: 2024-10-21T20:06:22.749Z
- Modified: 2026-06-17T05:16:50.857Z
- Weaknesses: CWE-459
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

afs: Fix server->active leak in afs_put_server

The atomic_read was accidentally replaced with atomic_inc_return,
which prevents the server from getting cleaned up and causes rmmod
to hang with a warning:

    Can't purge s=00000001

(As written by CVE List.)

## Affected

- Linux Linux: from 2757a4dc184997c66ef1de32636f73b9f21aac14 before c5078548c29c735f71b05053659c0cb294e738ad; from 2757a4dc184997c66ef1de32636f73b9f21aac14 before ef4d3ea40565a781c25847e9cb96c1bd9f462bc6; 6.0 (not affected: before 6.0; from 6.0.12 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 6.0 before 6.0.12; 6.1

## References

- <https://git.kernel.org/stable/c/c5078548c29c735f71b05053659c0cb294e738ad> (patch)
- <https://git.kernel.org/stable/c/ef4d3ea40565a781c25847e9cb96c1bd9f462bc6> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2022-49012 · Whole record: https://cve.day/CVE-2022-49012.json · Rebuilt by cve.day 2026-11-25T22:58:20.032Z
