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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a to < d8ea44f6090c087fe255d9512fb808574b4d88e8affectedbc6e5f6933b8e7b74858ac830d5b9b4ca10a099a to < d680472db98823d90fc91362910901e468269318affectedbc6e5f6933b8e7b74858ac830d5b9b4ca10a099a to < b1aea2c1960771a276d7e68c7424168eccd0c3daaffected
Linux Linux
Default version status: affected
6.17affected0 to < 6.17unaffected6.18.40 to ≤ 6.18.*unaffected7.1.5 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected