# CVE-2026-72462: apparmor: fix race in unix socket mediation when peer_path is used

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/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.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-08-15T05:57:06.705Z
- Modified: 2026-08-17T06:19:13.913Z
- Assigned by: Linux

## Description

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

apparmor: fix race in unix socket mediation when peer_path is used

The holding a reference to the peer_sk is not enough to ensure access
to the peer sk path. Accessing the path outside of the state lock
allows for a race with unix_release_sock(). Fix this by taking the
state lock and getting a reference to the path under lock.

Ideally for connected sockets we would cache this information so we
don't have to take the lock here. But for now just fix the race.

(As written by CVE List.)

## Affected

- Linux Linux: from bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a before d8ea44f6090c087fe255d9512fb808574b4d88e8; from bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a before d680472db98823d90fc91362910901e468269318; from bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a before b1aea2c1960771a276d7e68c7424168eccd0c3da; 6.17 (not affected: before 6.17; from 6.18.40 up to 6.18.*; from 7.1.5 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/d8ea44f6090c087fe255d9512fb808574b4d88e8>
- <https://git.kernel.org/stable/c/d680472db98823d90fc91362910901e468269318>
- <https://git.kernel.org/stable/c/b1aea2c1960771a276d7e68c7424168eccd0c3da>

## Sources

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

---

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