diff options
| author | John Johansen <john.johansen@canonical.com> | 2026-03-01 16:10:51 -0800 |
|---|---|---|
| committer | John Johansen <john.johansen@canonical.com> | 2026-03-09 16:05:44 -0700 |
| commit | 8e135b8aee5a06c52a4347a5a6d51223c6f36ba3 (patch) | |
| tree | 71fd2c351918593fe20e7bc5e9739d475ac27488 /tools/lib/python/kdoc/python_version.py | |
| parent | a0b7091c4de45a7325c8780e6934a894f92ac86b (diff) | |
| download | linux-8e135b8aee5a06c52a4347a5a6d51223c6f36ba3.tar.gz linux-8e135b8aee5a06c52a4347a5a6d51223c6f36ba3.zip | |
apparmor: fix race between freeing data and fs accessing it
AppArmor was putting the reference to i_private data on its end after
removing the original entry from the file system. However the inode
can aand does live beyond that point and it is possible that some of
the fs call back functions will be invoked after the reference has
been put, which results in a race between freeing the data and
accessing it through the fs.
While the rawdata/loaddata is the most likely candidate to fail the
race, as it has the fewest references. If properly crafted it might be
possible to trigger a race for the other types stored in i_private.
Fix this by moving the put of i_private referenced data to the correct
place which is during inode eviction.
Fixes: c961ee5f21b20 ("apparmor: convert from securityfs to apparmorfs for policy ns files")
Reported-by: Qualys Security Advisory <qsa@qualys.com>
Reviewed-by: Georgia Garcia <georgia.garcia@canonical.com>
Reviewed-by: Maxime Bélair <maxime.belair@canonical.com>
Reviewed-by: Cengiz Can <cengiz.can@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
