{"id":"CVE-2025-40160","aliases":["CVE-2025-40160"],"related":[],"kind":"vulnerability","state":"published","title":"xen/events: Return -EEXIST for bound VIRQs","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nxen/events: Return -EEXIST for bound VIRQs\n\nChange find_virq() to return -EEXIST when a VIRQ is bound to a\ndifferent CPU than the one passed in.  With that, remove the BUG_ON()\nfrom bind_virq_to_irq() to propogate the error upwards.\n\nSome VIRQs are per-cpu, but others are per-domain or global.  Those must\nbe bound to CPU0 and can then migrate elsewhere.  The lookup for\nper-domain and global will probably fail when migrated off CPU 0,\nespecially when the current CPU is tracked.  This now returns -EEXIST\ninstead of BUG_ON().\n\nA second call to bind a per-domain or global VIRQ is not expected, but\nmake it non-fatal to avoid trying to look up the irq, since we don't\nknow which per_cpu(virq_to_irq) it will be in.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nxen/events: Return -EEXIST for bound VIRQs\n\nChange find_virq() to return -EEXIST when a VIRQ is bound to a\ndifferent CPU than the one passed in.  With that, remove the BUG_ON()\nfrom bind_virq_to_irq() to propogate the error upwards.\n\nSome VIRQs are per-cpu, but others are per-domain or global.  Those must\nbe bound to CPU0 and can then migrate elsewhere.  The lookup for\nper-domain and global will probably fail when migrated off CPU 0,\nespecially when the current CPU is tracked.  This now returns -EEXIST\ninstead of BUG_ON().\n\nA second call to bind a per-domain or global VIRQ is not expected, but\nmake it non-fatal to avoid trying to look up the irq, since we don't\nknow which per_cpu(virq_to_irq) it will be in.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nxen/events: Devolver -EEXIST para VIRQs enlazados\n\nCambiar find_virq() para que devuelva -EEXIST cuando un VIRQ está enlazado a una CPU diferente a la pasada como argumento. Con esto, eliminar el BUG_ON() de bind_virq_to_irq() para propagar el error hacia arriba.\n\nAlgunos VIRQs son por-CPU, pero otros son por-dominio o globales. Esos deben ser enlazados a la CPU0 y luego pueden migrar a otro lugar. La búsqueda para los por-dominio y globales probablemente fallará cuando se migren fuera de la CPU 0, especialmente cuando se rastrea la CPU actual. Esto ahora devuelve -EEXIST en lugar de BUG_ON().\n\nNo se espera una segunda llamada para enlazar un VIRQ por-dominio o global, pero hacerla no-fatal para evitar intentar buscar la irq, ya que no sabemos en qué per_cpu(virq_to_irq) estará.","source":"nvd"}],"published":"2025-11-12T10:24:36.429Z","modified":"2026-10-30T13:18:14.127Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"62cc5fc7b2e0218144e162afb8191db9b924b5e6","fixed":"7e19b3643855d4b63442bd20e8bb811e1a75998e","status":"affected"},{"type":"git","introduced":"62cc5fc7b2e0218144e162afb8191db9b924b5e6","fixed":"612ef6056855c0aacb9b25d1d853c435754483f7","status":"affected"},{"type":"git","introduced":"62cc5fc7b2e0218144e162afb8191db9b924b5e6","fixed":"a1e7f07ae6b594f1ba5be46c6125b43bc505c5aa","status":"affected"},{"type":"git","introduced":"62cc5fc7b2e0218144e162afb8191db9b924b5e6","fixed":"f81db055a793eca9d05f79658ff62adafb41d664","status":"affected"},{"type":"git","introduced":"62cc5fc7b2e0218144e162afb8191db9b924b5e6","fixed":"07ce121d93a5e5fb2440a24da3dbf408fcee978e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.2","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.113","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.54","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.4","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/7e19b3643855d4b63442bd20e8bb811e1a75998e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/612ef6056855c0aacb9b25d1d853c435754483f7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a1e7f07ae6b594f1ba5be46c6125b43bc505c5aa","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f81db055a793eca9d05f79658ff62adafb41d664","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/07ce121d93a5e5fb2440a24da3dbf408fcee978e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40160","url":"https://www.cve.org/CVERecord?id=CVE-2025-40160","licence":"CVE Terms of Use","modified":"2026-10-30T12:22:54.628Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40160","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40160","licence":"Public domain","modified":"2026-10-30T13:18:14.127Z"}],"updatedAt":"2026-11-25T22:59:07.560Z","epss":{"score":0.00201,"percentile":0.10629,"date":"2026-12-01T12:00:22.000Z"}}