{"id":"AZL-118700","summary":"CVE-2026-143377 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Drop percpu_counter from the htab element count\n\nThe element count of a large non-preallocated hash map is a\npercpu_counter, whose slow path takes fbc-\u003elock with\nraw_spin_lock_irqsave(). That is not safe against BPF programs that run\nwhile the lock is held or contended: NMI programs and, as\nqueued_spin_lock_slowpath() calls trace_contention_end() with the lock\nalready held, programs attached to the contention_end tracepoint. If such\na program updates the same map it spins on the lock its own CPU holds:\n\n  WARNING: possible recursive locking detected\n  cend/250 is trying to acquire lock:\n  (key#5){....}-{2:2}, at: _raw_spin_lock_irqsave+0x18/0x30\n  but task is already holding lock:\n  (key#5){....}-{2:2}, at: _raw_spin_lock_irqsave+0x18/0x30\n    percpu_counter_add_batch+0xd8/0x160\n    alloc_htab_elem+0x408/0x480\n    htab_map_update_elem+0x1e8/0x6a0\n    bpf_prog_7a29a1ae68aedf07_cend+0x14c/0x1f8\n    __bpf_trace_contention_end+0x14/0x20\n    queued_spin_lock_slowpath+0x2e8/0x468\n    percpu_counter_add_batch+0xd8/0x160\n    alloc_htab_elem+0x408/0x480\n    htab_map_update_elem+0x1e8/0x6a0\n\nis_map_full() is affected too, as __percpu_counter_compare() falls back\nto percpu_counter_sum(), which takes the same lock.\n\nmap.elem_count already is a lockless per-cpu count of the same elements.\nMake htab-\u003ecount follow it in steps of PERCPU_COUNTER_BATCH and let\nis_map_full() sum elem_count once count is within nr_cpu_ids * batch of\nmax_entries. Each cpu's elem_count is ahead of count by less than the\nbatch, so that is exact, in NMI as well.","modified":"2026-12-04T14:18:40.599076180Z","published":"2026-12-03T10:18:30Z","upstream":["CVE-2026-143377"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143377"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-118700.json"}}],"schema_version":"1.9.2"}