CVE-2024-27414

In the Linux kernel, the following vulnerability has been resolved: rtnetlink: fix error logic of IFLA_BRIDGE_FLAGS writing back In the commit d73ef2d69c0d ("rtnetlink: let rtnl_bridge_setlink checks IFLA_BRIDGE_MODE length"), an adjustment was made to the old loop logic in the function `rtnl_bridge_setlink` to enable the loop to also check the length of the IFLA_BRIDGE_MODE attribute. However, this adjustment removed the `break` statement and led to an error logic of the flags writing back at the end of this function. if (have_flags) memcpy(nla_data(attr), &flags, sizeof(flags)); // attr should point to IFLA_BRIDGE_FLAGS NLA !!! Before the mentioned commit, the `attr` is granted to be IFLA_BRIDGE_FLAGS. However, this is not necessarily true fow now as the updated loop will let the attr point to the last NLA, even an invalid NLA which could cause overflow writes. This patch introduces a new variable `br_flag` to save the NLA pointer that points to IFLA_BRIDGE_FLAGS and uses it to resolve the mentioned error logic.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.5:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.5:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.5:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.5:rc7:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.8:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.8:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.8:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.8:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.8:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.8:rc6:*:*:*:*:*:*

Configuration 2 (hide)

cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*

History

17 Dec 2025, 19:38

Type Values Removed Values Added
CPE cpe:2.3:o:linux:linux_kernel:6.8:rc1:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.5:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.5:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.8:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.8:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.8:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.5:rc7:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.5:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.8:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.8:rc2:*:*:*:*:*:*
First Time Linux
Debian
Debian debian Linux
Linux linux Kernel
References () https://git.kernel.org/stable/c/167d8642daa6a44b51de17f8ff0f584e1e762db7 - () https://git.kernel.org/stable/c/167d8642daa6a44b51de17f8ff0f584e1e762db7 - Patch
References () https://git.kernel.org/stable/c/743ad091fb46e622f1b690385bb15e3cd3daf874 - () https://git.kernel.org/stable/c/743ad091fb46e622f1b690385bb15e3cd3daf874 - Patch
References () https://git.kernel.org/stable/c/831bc2728fb48a8957a824cba8c264b30dca1425 - () https://git.kernel.org/stable/c/831bc2728fb48a8957a824cba8c264b30dca1425 - Patch
References () https://git.kernel.org/stable/c/882a51a10ecf24ce135d573afa0872aef02c5125 - () https://git.kernel.org/stable/c/882a51a10ecf24ce135d573afa0872aef02c5125 - Patch
References () https://git.kernel.org/stable/c/a1227b27fcccc99dc44f912b479e01a17e2d7d31 - () https://git.kernel.org/stable/c/a1227b27fcccc99dc44f912b479e01a17e2d7d31 - Patch
References () https://git.kernel.org/stable/c/b9fbc44159dfc3e9a7073032752d9e03f5194a6f - () https://git.kernel.org/stable/c/b9fbc44159dfc3e9a7073032752d9e03f5194a6f - Patch
References () https://git.kernel.org/stable/c/f2261eb994aa5757c1da046b78e3229a3ece0ad9 - () https://git.kernel.org/stable/c/f2261eb994aa5757c1da046b78e3229a3ece0ad9 - Patch
References () https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html - () https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html - Third Party Advisory
CWE NVD-CWE-noinfo
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.5

21 Nov 2024, 09:04

Type Values Removed Values Added
References
  • () https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html -
References () https://git.kernel.org/stable/c/167d8642daa6a44b51de17f8ff0f584e1e762db7 - () https://git.kernel.org/stable/c/167d8642daa6a44b51de17f8ff0f584e1e762db7 -
References () https://git.kernel.org/stable/c/743ad091fb46e622f1b690385bb15e3cd3daf874 - () https://git.kernel.org/stable/c/743ad091fb46e622f1b690385bb15e3cd3daf874 -
References () https://git.kernel.org/stable/c/831bc2728fb48a8957a824cba8c264b30dca1425 - () https://git.kernel.org/stable/c/831bc2728fb48a8957a824cba8c264b30dca1425 -
References () https://git.kernel.org/stable/c/882a51a10ecf24ce135d573afa0872aef02c5125 - () https://git.kernel.org/stable/c/882a51a10ecf24ce135d573afa0872aef02c5125 -
References () https://git.kernel.org/stable/c/a1227b27fcccc99dc44f912b479e01a17e2d7d31 - () https://git.kernel.org/stable/c/a1227b27fcccc99dc44f912b479e01a17e2d7d31 -
References () https://git.kernel.org/stable/c/b9fbc44159dfc3e9a7073032752d9e03f5194a6f - () https://git.kernel.org/stable/c/b9fbc44159dfc3e9a7073032752d9e03f5194a6f -
References () https://git.kernel.org/stable/c/f2261eb994aa5757c1da046b78e3229a3ece0ad9 - () https://git.kernel.org/stable/c/f2261eb994aa5757c1da046b78e3229a3ece0ad9 -

05 Nov 2024, 10:16

Type Values Removed Values Added
References
  • {'url': 'https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html', 'source': '416baaa9-dc9f-4396-8d5f-8c081fb06d67'}

25 Jun 2024, 22:15

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: rtnetlink: corrige la lógica de error de la reescritura de IFLA_BRIDGE_FLAGS En el commit d73ef2d69c0d ("rtnetlink: let rtnl_bridge_setlink comprueba la longitud de IFLA_BRIDGE_MODE"), se realizó un ajuste a la lógica de bucle anterior en la función ` rtnl_bridge_setlink` para permitir que el bucle también verifique la longitud del atributo IFLA_BRIDGE_MODE. Sin embargo, este ajuste eliminó la declaración "break" y generó una lógica de error en la escritura de los indicadores al final de esta función. if (have_flags) memcpy(nla_data(attr), &flags, sizeof(flags)); // attr debería apuntar a IFLA_BRIDGE_FLAGS NLA !!! Antes de la confirmación mencionada, se concede que el `attr` sea IFLA_BRIDGE_FLAGS. Sin embargo, esto no es necesariamente cierto ahora, ya que el bucle actualizado permitirá que el atributo apunte al último NLA, incluso un NLA no válido que podría causar escrituras desbordadas. Este parche introduce una nueva variable `br_flag` para guardar el puntero NLA que apunta a IFLA_BRIDGE_FLAGS y lo usa para resolver la lógica de error mencionada.
References
  • () https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html -

17 May 2024, 12:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-05-17 12:15

Updated : 2025-12-17 19:38


NVD link : CVE-2024-27414

Mitre link : CVE-2024-27414

CVE.ORG link : CVE-2024-27414


JSON object : View

Products Affected

debian

  • debian_linux

linux

  • linux_kernel