7.8high
ipvlan: Make the addrs_lock be per port
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.16% (higher than 5% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: ipvlan: Make the addrs_lock be per port Make the addrs_lock be per port, not per ipvlan dev. Initial code seems to be written in the assumption, that any address change must occur under RTNL. But it is not so for the case of IPv6. So 1) Introduce per-port addrs_lock. 2) It was needed to fix places where it was forgotten to take lock (ipvlan_open/ipvlan_close) This appears to be a very minor problem though. Since it's highly unlikely that ipvlan_add_addr() will be called on 2 CPU simultaneously. But nevertheless, this could cause: 1) False-negative of ipvlan_addr_busy(): one interface iterated through all port->ipvlans + ipvlan->addrs under some ipvlan spinlock, and another added IP under its own lock. Though this is only possible for IPv6, since looks like only ipvlan_addr6_event() can be called without rtnl_lock. 2) Race since ipvlan_ht_addr_add(port) is called under different ipvlan->addrs_lock locks This should not affect performance, since add/remove IP is a rare situation and spinlock is not taken on fast paths.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 8230819494b3bf284ca7262ac5f877333147b937 before 3c149b662cbb202a450e81f938e702ba333864ad, from 8230819494b3bf284ca7262ac5f877333147b937 before 70feb16e3fbfb10b15de1396557c38e99f1ab8df, from 8230819494b3bf284ca7262ac5f877333147b937 before 88f83e6c9cdb46b8c8ddd0ba01393362963cf589, from 8230819494b3bf284ca7262ac5f877333147b937 before 04ba6de6eff61238e5397c14ac26a6578c7735a5, from 8230819494b3bf284ca7262ac5f877333147b937 before 1f300c10d92c547c3a7d978e1212ff52f18256ed, from 8230819494b3bf284ca7262ac5f877333147b937 before 6a81e2db096913d7e43aada1c350c1282e76db39, from 8230819494b3bf284ca7262ac5f877333147b937 before d3ba32162488283c0a4c5bedd8817aec91748802, 4.17 Not affected: before 4.17, from 5.10.249 up to 5.10.*, from 5.15.199 up to 5.15.*, from 6.1.162 up to 6.1.*, from 6.6.122 up to 6.6.*, from 6.12.68 up to 6.12.* | CVE List |
| linux linux_kernel | from 4.17 before 5.10.249, from 5.11 before 5.15.199, from 5.16 before 6.1.162, from 6.2 before 6.6.122, from 6.7 before 6.12.68, from 6.13 before 6.18.8, 6.19 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: ipvlan: Make the addrs_lock be per port Make the addrs_lock be per port, not per ipvlan dev. Initial code seems to be written in the assumption, that any address change must occur under RTNL. But it is not so for the case of IPv6. So 1) Introduce per-port addrs_lock. 2) It was needed to fix places where it was forgotten to take lock (ipvlan_open/ipvlan_close) This appears to be a very minor problem though. Since it's highly unlikely that ipvlan_add_addr() will be called on 2 CPU simultaneously. But nevertheless, this could cause: 1) False-negative of ipvlan_addr_busy(): one interface iterated through all port->ipvlans + ipvlan->addrs under some ipvlan spinlock, and another added IP under its own lock. Though this is only possible for IPv6, since looks like only ipvlan_addr6_event() can be called without rtnl_lock. 2) Race since ipvlan_ht_addr_add(port) is called under different ipvlan->addrs_lock locks This should not affect performance, since add/remove IP is a rare situation and spinlock is not taken on fast paths.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ipvlan: Hacer que el addrs_lock sea por puerto Hacer que el addrs_lock sea por puerto, no por dispositivo ipvlan. El código inicial parece estar escrito bajo la suposición de que cualquier cambio de dirección debe ocurrir bajo RTNL. Pero no es así para el caso de IPv6. Así que 1) Introducir addrs_lock por puerto. 2) Fue necesario corregir lugares donde se olvidó tomar el bloqueo (ipvlan_open/ipvlan_close) Esto parece ser un problema muy menor, sin embargo. Ya que es muy poco probable que ipvlan_add_addr() sea llamado en 2 CPU simultáneamente. Pero, sin embargo, esto podría causar: 1) Falso negativo de ipvlan_addr_busy(): una interfaz iteró a través de todos los port->ipvlans + ipvlan->addrs bajo algún spinlock de ipvlan, y otra añadió IP bajo su propio bloqueo. Aunque esto solo es posible para IPv6, ya que parece que solo ipvlan_addr6_event() puede ser llamado sin rtnl_lock. 2) Condición de carrera ya que ipvlan_ht_addr_add(port) es llamado bajo diferentes bloqueos ipvlan->addrs_lock. Esto no debería afectar el rendimiento, ya que añadir/eliminar IP es una situación rara y el spinlock no se toma en rutas rápidas.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-23103 changed 2026-11-10 | CVE Terms of Use |
| NVD | CVE-2026-23103 changed 2026-11-10 | Public domain |