Nixpkgs security tracker

Login with GitHub
⚠️ You are using a production deployment that is still only suitable for demo purposes. Any work done in this might be wiped later without notice.

Suggestion detail

Dismissed
(max. allowed matches exceeded)
created 3 weeks, 4 days ago Activity log
  • Created & dismissed (max. allowed matches exceeded) suggestion
audit: fix potential use-after-free in audit_del_rule()

In the Linux kernel, the following vulnerability has been resolved: audit: fix potential use-after-free in audit_del_rule() `audit_del_rule()` destroys `e->rule.exe` via `audit_remove_mark_rule()` before unlinking the rule from RCU-visible filter lists and waiting for a grace period. Concurrent readers in `audit_filter()` and `audit_filter_rules()` still dereference `e->rule.exe`, while the fsnotify mark can be freed on an independent lifetime path. This creates a use-after-free window during rule deletion. Fix this by unlinking the rule from the RCU-visible lists and invoking `synchronize_rcu()` before calling `audit_remove_mark_rule()` (and other rule removal helpers). This ensures that all existing RCU readers have exited the critical section before any underlying resources are destroyed.

Affected products

Linux
  • <cae0dfed5d307b240bff71c3cf206652d1b6f215
  • <246df90b5f1a8a6e6abbd2f058b029558720adec
  • ==4.3
  • =<6.6.*
  • =<*
  • <45bf3df5b32e5a49953e7ceabc55f7dd85380e46
  • <78bde7e9bd36eaae1b8e8cfcd47f12a34f301dbf
  • =<6.18.*
  • =<6.12.*
  • =<7.1.*
  • <5b8f46864f06d6dbacb7dcea52bc084dfd122638
  • <4.3