{"id":"CVE-2024-42284","state":"PUBLISHED","title":"tipc: Return non-zero value from tipc_udp_addr2str() on error","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ntipc: Return non-zero value from tipc_udp_addr2str() on error\n\ntipc_udp_addr2str() should return non-zero value if the UDP media\naddress is invalid. Otherwise, a buffer overflow access can occur in\ntipc_media_addr_printf(). Fix this by returning 1 on an invalid UDP\nmedia address.","publishedAt":"2024-08-17T09:08:50.576Z","updatedAt":"2026-08-05T11:36:20.207Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d0f91938bede204a343473792529e0db7d599836","status":"affected","lessThan":"7ec3335dd89c8d169e9650e4bac64fde71fdf15b","versionType":"git"},{"version":"d0f91938bede204a343473792529e0db7d599836","status":"affected","lessThan":"253405541be2f15ffebdeac2f4cf4b7e9144d12f","versionType":"git"},{"version":"d0f91938bede204a343473792529e0db7d599836","status":"affected","lessThan":"aa38bf74899de07cf70b50cd17f8ad45fb6654c8","versionType":"git"},{"version":"d0f91938bede204a343473792529e0db7d599836","status":"affected","lessThan":"5eea127675450583680c8170358bcba43227bd69","versionType":"git"},{"version":"d0f91938bede204a343473792529e0db7d599836","status":"affected","lessThan":"728734352743a78b4c5a7285b282127696a4a813","versionType":"git"},{"version":"d0f91938bede204a343473792529e0db7d599836","status":"affected","lessThan":"76ddf84a52f0d8ec3f5db6ccce08faf202a17d28","versionType":"git"},{"version":"d0f91938bede204a343473792529e0db7d599836","status":"affected","lessThan":"2abe350db1aa599eeebc6892237d0bce0f1de62a","versionType":"git"},{"version":"d0f91938bede204a343473792529e0db7d599836","status":"affected","lessThan":"fa96c6baef1b5385e2f0c0677b32b3839e716076","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/tipc/udp_media.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.1","versionType":"semver"},{"version":"4.19.320","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.282","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.224","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.165","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.103","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.44","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.3","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/tipc/udp_media.c"]}],"references":["https://git.kernel.org/stable/c/7ec3335dd89c8d169e9650e4bac64fde71fdf15b","https://git.kernel.org/stable/c/253405541be2f15ffebdeac2f4cf4b7e9144d12f","https://git.kernel.org/stable/c/aa38bf74899de07cf70b50cd17f8ad45fb6654c8","https://git.kernel.org/stable/c/5eea127675450583680c8170358bcba43227bd69","https://git.kernel.org/stable/c/728734352743a78b4c5a7285b282127696a4a813","https://git.kernel.org/stable/c/76ddf84a52f0d8ec3f5db6ccce08faf202a17d28","https://git.kernel.org/stable/c/2abe350db1aa599eeebc6892237d0bce0f1de62a","https://git.kernel.org/stable/c/fa96c6baef1b5385e2f0c0677b32b3839e716076","https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:47.831Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/42xxx/CVE-2024-42284.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-42284","state":"PUBLISHED","datePublished":"2024-08-17T09:08:50.576Z","dateUpdated":"2026-08-05T11:36:20.207Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-07-30T07:40:12.262Z"},"containers":{"cna":{"title":"tipc: Return non-zero value from tipc_udp_addr2str() on error","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ntipc: Return non-zero value from tipc_udp_addr2str() on error\n\ntipc_udp_addr2str() should return non-zero value if the UDP media\naddress is invalid. Otherwise, a buffer overflow access can occur in\ntipc_media_addr_printf(). Fix this by returning 1 on an invalid UDP\nmedia address."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d0f91938bede204a343473792529e0db7d599836","status":"affected","lessThan":"7ec3335dd89c8d169e9650e4bac64fde71fdf15b","versionType":"git"},{"version":"d0f91938bede204a343473792529e0db7d599836","status":"affected","lessThan":"253405541be2f15ffebdeac2f4cf4b7e9144d12f","versionType":"git"},{"version":"d0f91938bede204a343473792529e0db7d599836","status":"affected","lessThan":"aa38bf74899de07cf70b50cd17f8ad45fb6654c8","versionType":"git"},{"version":"d0f91938bede204a343473792529e0db7d599836","status":"affected","lessThan":"5eea127675450583680c8170358bcba43227bd69","versionType":"git"},{"version":"d0f91938bede204a343473792529e0db7d599836","status":"affected","lessThan":"728734352743a78b4c5a7285b282127696a4a813","versionType":"git"},{"version":"d0f91938bede204a343473792529e0db7d599836","status":"affected","lessThan":"76ddf84a52f0d8ec3f5db6ccce08faf202a17d28","versionType":"git"},{"version":"d0f91938bede204a343473792529e0db7d599836","status":"affected","lessThan":"2abe350db1aa599eeebc6892237d0bce0f1de62a","versionType":"git"},{"version":"d0f91938bede204a343473792529e0db7d599836","status":"affected","lessThan":"fa96c6baef1b5385e2f0c0677b32b3839e716076","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/tipc/udp_media.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.1","versionType":"semver"},{"version":"4.19.320","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.282","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.224","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.165","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.103","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.44","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.3","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/tipc/udp_media.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/7ec3335dd89c8d169e9650e4bac64fde71fdf15b"},{"url":"https://git.kernel.org/stable/c/253405541be2f15ffebdeac2f4cf4b7e9144d12f"},{"url":"https://git.kernel.org/stable/c/aa38bf74899de07cf70b50cd17f8ad45fb6654c8"},{"url":"https://git.kernel.org/stable/c/5eea127675450583680c8170358bcba43227bd69"},{"url":"https://git.kernel.org/stable/c/728734352743a78b4c5a7285b282127696a4a813"},{"url":"https://git.kernel.org/stable/c/76ddf84a52f0d8ec3f5db6ccce08faf202a17d28"},{"url":"https://git.kernel.org/stable/c/2abe350db1aa599eeebc6892237d0bce0f1de62a"},{"url":"https://git.kernel.org/stable/c/fa96c6baef1b5385e2f0c0677b32b3839e716076"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","baseScore":9.1,"baseSeverity":"CRITICAL"},"scenarios":[{"lang":"en","value":"AV:N - The malformed media address is parsed straight out of a TIPC LINK_CONFIG discovery packet received on the UDP bearer socket (port 6118), which accepts routable unicast/replicast traffic from arbitrary sources with no peer-address check in tipc_udp_recv(). A remote host can therefore reach the vulnerable code with a single crafted UDP datagram.\nAC:L - One crafted packet with proto set to any value other than ETH_P_IP/ETH_P_IPV6 and msg_prevnode=0 deterministically reaches disc_dupl_alert() and the uninitialized-buffer read; there is no race, no memory-layout dependency, and no condition outside the attacker's control.\nPR:N - TIPC neighbor discovery is processed before any link is established and, with the default configuration (no CONFIG_TIPC_CRYPTO keys), involves no authentication whatsoever. The attacker needs no account or credentials on the target.\nUI:N - The victim node processes incoming discovery messages automatically in softirq context; no administrator or user action is required beyond having the UDP bearer already enabled.\nS:U - The out-of-bounds read and the leaked data both stay within the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The %s conversion reads an uninitialized 60-byte stack buffer past its end until a NUL byte, and the harvested kernel stack contents are printed into the kernel log via pr_warn — an unbounded stack out-of-bounds read that can disclose kernel pointers and defeat KASLR.\nI:N - No out-of-bounds or attacker-controlled write occurs; every scnprintf() destination remains correctly length-bounded, so no kernel data is modified.\nA:H - The unbounded stack read can fault into the VMAP_STACK guard page and immediately panics KASAN/panic_on_warn kernels as a stack-out-of-bounds report, and the trigger is a non-ratelimited pr_warn that a remote attacker can drive repeatedly."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:36:20.207Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"4.19.320"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"5.4.282"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"5.10.224"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"5.15.165"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"6.1.103"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"6.6.44"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"6.10.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"6.11"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-42284","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T16:11:26.639456Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-12T17:33:30.616Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T22:03:29.114Z"}}]}}}