{"id":"CVE-2024-42283","aliases":["CVE-2024-42283"],"related":[],"kind":"vulnerability","state":"published","title":"net: nexthop: Initialize all fields in dumped nexthops","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: nexthop: Initialize all fields in dumped nexthops\n\nstruct nexthop_grp contains two reserved fields that are not initialized by\nnla_put_nh_group(), and carry garbage. This can be observed e.g. with\nstrace (edited for clarity):\n\n    # ip nexthop add id 1 dev lo\n    # ip nexthop add id 101 group 1\n    # strace -e recvmsg ip nexthop get id 101\n    ...\n    recvmsg(... [{nla_len=12, nla_type=NHA_GROUP},\n                 [{id=1, weight=0, resvd1=0x69, resvd2=0x67}]] ...) = 52\n\nThe fields are reserved and therefore not currently used. But as they are, they\nleak kernel memory, and the fact they are not just zero complicates repurposing\nof the fields for new ends. Initialize the full structure.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: nexthop: Initialize all fields in dumped nexthops\n\nstruct nexthop_grp contains two reserved fields that are not initialized by\nnla_put_nh_group(), and carry garbage. This can be observed e.g. with\nstrace (edited for clarity):\n\n    # ip nexthop add id 1 dev lo\n    # ip nexthop add id 101 group 1\n    # strace -e recvmsg ip nexthop get id 101\n    ...\n    recvmsg(... [{nla_len=12, nla_type=NHA_GROUP},\n                 [{id=1, weight=0, resvd1=0x69, resvd2=0x67}]] ...) = 52\n\nThe fields are reserved and therefore not currently used. But as they are, they\nleak kernel memory, and the fact they are not just zero complicates repurposing\nof the fields for new ends. Initialize the full structure.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: nexthop: inicializa todos los campos en la estructura nexthops volcada. nexthop_grp contiene dos campos reservados que no son inicializados por nla_put_nh_group() y transporta basura. Esto se puede observar, por ejemplo, con strace (editado para mayor claridad): # ip nexthop add id 1 dev lo # ip nexthop add id 101 group 1 # strace -e recvmsg ip nexthop get id 101 ... recvmsg(... [{nla_len =12, nla_type=NHA_GROUP}, [{id=1, peso=0, resvd1=0x69, resvd2=0x67}]] ...) = 52 Los campos están reservados y, por lo tanto, no se utilizan actualmente. Pero tal como están, pierden memoria del núcleo, y el hecho de que no sean simplemente cero complica la reutilización de los campos para nuevos fines. Inicialice la estructura completa.","source":"nvd"}],"published":"2024-08-17T09:08:49.866Z","modified":"2026-10-15T01:18:45.570Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-908"],"affected":[{"ranges":[{"type":"git","introduced":"430a049190de3c9e219f43084de9f1122da04570","fixed":"fd06cb4a5fc7bda3dea31712618a62af72a1c6cb","status":"affected"},{"type":"git","introduced":"430a049190de3c9e219f43084de9f1122da04570","fixed":"5cc4d71dda2dd4f1520f40e634a527022e48ccd8","status":"affected"},{"type":"git","introduced":"430a049190de3c9e219f43084de9f1122da04570","fixed":"9e8f558a3afe99ce51a642ce0d3637ddc2b5d5d0","status":"affected"},{"type":"git","introduced":"430a049190de3c9e219f43084de9f1122da04570","fixed":"1377de719652d868f5317ba8398b7e74c5f0430b","status":"affected"},{"type":"git","introduced":"430a049190de3c9e219f43084de9f1122da04570","fixed":"7704460acd7f5d35eb07c52500987dc9b95313fb","status":"affected"},{"type":"git","introduced":"430a049190de3c9e219f43084de9f1122da04570","fixed":"a13d3864b76ac87085ec530b2ff8e37482a63a96","status":"affected"},{"type":"git","introduced":"430a049190de3c9e219f43084de9f1122da04570","fixed":"6d745cd0e9720282cd291d36b9db528aea18add2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.3","status":"unaffected"},{"type":"semver","introduced":"5.4.282","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.224","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.165","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.103","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.44","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.10.3","lastAffected":"6.10.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.11","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.3","fixed":"5.4.282"},{"status":"affected","introduced":"5.5","fixed":"5.10.224"},{"status":"affected","introduced":"5.11","fixed":"5.15.165"},{"status":"affected","introduced":"5.16","fixed":"6.1.103"},{"status":"affected","introduced":"6.2","fixed":"6.6.44"},{"status":"affected","introduced":"6.7","fixed":"6.10.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/fd06cb4a5fc7bda3dea31712618a62af72a1c6cb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5cc4d71dda2dd4f1520f40e634a527022e48ccd8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9e8f558a3afe99ce51a642ce0d3637ddc2b5d5d0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1377de719652d868f5317ba8398b7e74c5f0430b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7704460acd7f5d35eb07c52500987dc9b95313fb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a13d3864b76ac87085ec530b2ff8e37482a63a96","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6d745cd0e9720282cd291d36b9db528aea18add2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:11:29.775Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-42283","url":"https://www.cve.org/CVERecord?id=CVE-2024-42283","licence":"CVE Terms of Use","modified":"2026-10-15T00:48:13.038Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-42283","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42283","licence":"Public domain","modified":"2026-10-15T01:18:45.570Z"}],"updatedAt":"2026-11-25T22:58:44.463Z","epss":{"score":0.00324,"percentile":0.17939,"date":"2026-11-30T12:00:22.000Z"}}