{"cve":"CVE-2026-99179","nvd":{"published":"2026-10-28T11:17:38.633","modified":"2026-10-28T11:17:38.633","status":"Received","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwatch_queue: Fix note pool publication race in watch_queue_set_size()\n\nThere is a race between watch_queue_set_size() and post_one_notification().\nwatch_queue_set_size() publishes wqueue->notes, notes_bitmap, nr_pages and\nnr_notes with plain stores, and post_one_notification() reads them with\nplain loads under a different lock, so nothing orders the four stores\nagainst the poster's loads: depending on the build, notes can be stored\nlast (gcc 14 on x86-64 does this).  Since keyctl_watch_key() lets a watch\nattach to a queue before it is sized, post_one_notification() can already\nbe running on another CPU at that moment: it reads nr_notes > 0, passes\nits bounds check, and then reads notes while it is still NULL,\ndereferencing notes[0].\n\nAn unprivileged user triggers this reliably by watching one of its own\nkeys through a notification pipe and racing ioctl(IOC_WATCH_QUEUE_SET_SIZE)\non that pipe against keyctl(KEYCTL_SETPERM) on the key from another CPU,\ntriggering:\n\n  BUG: kernel NULL pointer dereference, address: 0000000000000000\n  RIP: 0010:post_one_notification.isra.0+0xa2/0x1e0\n  Call Trace:\n   __post_watch_notification+0x148/0x180\n   keyctl_setperm_key+0x119/0x130\n   do_syscall_64+0x108/0x4c0\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n  Kernel panic - not syncing: Fatal exception in interrupt\n\nFix this by publishing nr_notes last with smp_store_release(), and by\nreading it once with smp_load_acquire() in post_one_notification() before\nthe bitmap and the page array are touched.  A poster that observes a\nnon-zero nr_notes then also observes the pool behind it; one that observes\nzero drops the notification as before.","cvss_v4":null,"cvss_v3":null,"cwes":[],"references":["https://git.kernel.org/stable/c/5e531d62f1f8834faf7a4eed0d41105cf6570a8f","https://git.kernel.org/stable/c/811fb6d0b07605e8e8d93bde8748be4b3028809a","https://git.kernel.org/stable/c/9e73a6754457ffed8399b835552013b9363e51d1"],"products":[],"source":"nvd","synced_at":"2026-10-28T11:37:51.394563875+00:00"},"epss":null,"kev":null,"osv":[],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}