Linux
apparmor: fix race in unix socket mediation when peer_path is used
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a, < d8ea44f6090c087fe255d9512fb808574b4d88e8
- >= bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a, < d680472db98823d90fc91362910901e468269318
- >= bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a, < b1aea2c1960771a276d7e68c7424168eccd0c3da
Fixed in d8ea44f6090c087fe255d9512fb808574b4d88e8, d680472db98823d90fc91362910901e468269318, b1aea2c1960771a276d7e68c7424168eccd0c3da
- 6.17
Fixed in 0, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to d8ea44f6090c087fe255d9512fb808574b4d88e8 or d680472db98823d90fc91362910901e468269318 or b1aea2c1960771a276d7e68c7424168eccd0c3da or later.
Upgrade Linux to 0 or 6.18.40 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.