{"id":"CVE-2026-72058","state":"PUBLISHED","title":"net: ixp4xx_hss: fix duplicate HDLC netdev allocation","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ixp4xx_hss: fix duplicate HDLC netdev allocation\n\nixp4xx_hss_probe() allocates two HDLC netdevs. The first one is stored\nin ndev, initialized, and registered with register_hdlc_device(). The\nsecond one is stored in port->netdev and later used by the remove path\nfor unregister_hdlc_device() and free_netdev().\n\nThis means that the registered netdev is not the same object that is\nunregistered and freed on remove. It also leaks the first allocation if\nthe second alloc_hdlcdev() call fails, and the first allocation is not\nchecked before ndev is used.\n\nOlder code allocated the HDLC netdev only once and stored the same object\nin both the local variable and port->netdev. The buggy conversion split\nthis into two alloc_hdlcdev() calls. A later rename changed the local\nvariable name to ndev, but the underlying mismatch remained.\n\nFix this by allocating the HDLC netdev only once and assigning the same\nobject to port->netdev.","publishedAt":"2026-08-15T05:52:13.616Z","updatedAt":"2026-08-23T12:46:37.509Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"99ebe65eb9c0ada015931d239d9f2d1dc8897fee","status":"affected","lessThan":"77d925b948ee594a79afe66f85bb94b67940140b","versionType":"git"},{"version":"99ebe65eb9c0ada015931d239d9f2d1dc8897fee","status":"affected","lessThan":"8f4c3c384092becbf4835a3f8ed8a3df1f544578","versionType":"git"},{"version":"99ebe65eb9c0ada015931d239d9f2d1dc8897fee","status":"affected","lessThan":"fd0b939ebd1eee29945a539c5ed65c35dddac8d6","versionType":"git"},{"version":"99ebe65eb9c0ada015931d239d9f2d1dc8897fee","status":"affected","lessThan":"ffba16e6f55948d94b7f16aa113d587c1c4c0643","versionType":"git"},{"version":"99ebe65eb9c0ada015931d239d9f2d1dc8897fee","status":"affected","lessThan":"3f85fcd520aa703824b1958f35169925ddae2558","versionType":"git"},{"version":"99ebe65eb9c0ada015931d239d9f2d1dc8897fee","status":"affected","lessThan":"91850f582783098415a334f8bd0a84c87ff15a8c","versionType":"git"},{"version":"99ebe65eb9c0ada015931d239d9f2d1dc8897fee","status":"affected","lessThan":"db818b0e8af7bac16860116a19c341a63d6677b4","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wan/ixp4xx_hss.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"5.15.217","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.178","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wan/ixp4xx_hss.c"]}],"references":["https://git.kernel.org/stable/c/77d925b948ee594a79afe66f85bb94b67940140b","https://git.kernel.org/stable/c/8f4c3c384092becbf4835a3f8ed8a3df1f544578","https://git.kernel.org/stable/c/fd0b939ebd1eee29945a539c5ed65c35dddac8d6","https://git.kernel.org/stable/c/ffba16e6f55948d94b7f16aa113d587c1c4c0643","https://git.kernel.org/stable/c/3f85fcd520aa703824b1958f35169925ddae2558","https://git.kernel.org/stable/c/91850f582783098415a334f8bd0a84c87ff15a8c","https://git.kernel.org/stable/c/db818b0e8af7bac16860116a19c341a63d6677b4"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/72xxx/CVE-2026-72058.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-72058","state":"PUBLISHED","datePublished":"2026-08-15T05:52:13.616Z","dateUpdated":"2026-08-23T12:46:37.509Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-09T03:40:39.903Z"},"containers":{"cna":{"title":"net: ixp4xx_hss: fix duplicate HDLC netdev allocation","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ixp4xx_hss: fix duplicate HDLC netdev allocation\n\nixp4xx_hss_probe() allocates two HDLC netdevs. The first one is stored\nin ndev, initialized, and registered with register_hdlc_device(). The\nsecond one is stored in port->netdev and later used by the remove path\nfor unregister_hdlc_device() and free_netdev().\n\nThis means that the registered netdev is not the same object that is\nunregistered and freed on remove. It also leaks the first allocation if\nthe second alloc_hdlcdev() call fails, and the first allocation is not\nchecked before ndev is used.\n\nOlder code allocated the HDLC netdev only once and stored the same object\nin both the local variable and port->netdev. The buggy conversion split\nthis into two alloc_hdlcdev() calls. A later rename changed the local\nvariable name to ndev, but the underlying mismatch remained.\n\nFix this by allocating the HDLC netdev only once and assigning the same\nobject to port->netdev."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"99ebe65eb9c0ada015931d239d9f2d1dc8897fee","status":"affected","lessThan":"77d925b948ee594a79afe66f85bb94b67940140b","versionType":"git"},{"version":"99ebe65eb9c0ada015931d239d9f2d1dc8897fee","status":"affected","lessThan":"8f4c3c384092becbf4835a3f8ed8a3df1f544578","versionType":"git"},{"version":"99ebe65eb9c0ada015931d239d9f2d1dc8897fee","status":"affected","lessThan":"fd0b939ebd1eee29945a539c5ed65c35dddac8d6","versionType":"git"},{"version":"99ebe65eb9c0ada015931d239d9f2d1dc8897fee","status":"affected","lessThan":"ffba16e6f55948d94b7f16aa113d587c1c4c0643","versionType":"git"},{"version":"99ebe65eb9c0ada015931d239d9f2d1dc8897fee","status":"affected","lessThan":"3f85fcd520aa703824b1958f35169925ddae2558","versionType":"git"},{"version":"99ebe65eb9c0ada015931d239d9f2d1dc8897fee","status":"affected","lessThan":"91850f582783098415a334f8bd0a84c87ff15a8c","versionType":"git"},{"version":"99ebe65eb9c0ada015931d239d9f2d1dc8897fee","status":"affected","lessThan":"db818b0e8af7bac16860116a19c341a63d6677b4","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wan/ixp4xx_hss.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"5.15.217","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.178","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wan/ixp4xx_hss.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/77d925b948ee594a79afe66f85bb94b67940140b"},{"url":"https://git.kernel.org/stable/c/8f4c3c384092becbf4835a3f8ed8a3df1f544578"},{"url":"https://git.kernel.org/stable/c/fd0b939ebd1eee29945a539c5ed65c35dddac8d6"},{"url":"https://git.kernel.org/stable/c/ffba16e6f55948d94b7f16aa113d587c1c4c0643"},{"url":"https://git.kernel.org/stable/c/3f85fcd520aa703824b1958f35169925ddae2558"},{"url":"https://git.kernel.org/stable/c/91850f582783098415a334f8bd0a84c87ff15a8c"},{"url":"https://git.kernel.org/stable/c/db818b0e8af7bac16860116a19c341a63d6677b4"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-23T12:46:37.509Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"5.15.217"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.1.178"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.6.145"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.12.97"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.18.40"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.1.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}