{"api_version":"1","generated_at":"2026-09-18T04:52:18+00:00","cve":"CVE-2026-90077","urls":{"html":"https://cve.report/CVE-2026-90077","api":"https://cve.report/api/cve/CVE-2026-90077.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-90077","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-90077"},"summary":{"title":"net: fix a resource leak in copy_net_ns() error handling path","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: fix a resource leak in copy_net_ns() error handling path\n\nCurrently, preinit_net() does two things:\n\n  (1) call ns_common_init() which might fail\n  (2) initialize resources which does not fail\n\nHowever, preinit_net() is returning early when (1) fails, and copy_net_ns()\nis jumping to the dec_ucounts: label. As a result, resources allocated by\nnet_alloc() are leaking. We need to call key_remove_domain() and\nnet_passive_dec() in order to release resources allocated by net_alloc().\n\nWe cannot simply jump to the put_userns: label when preinit_net() failed,\nfor (2) is not yet done. But we can reorder (1) and (2), for there is no\ndependency between (1) and (2). Therefore, this patch decouples (1) from\npreinit_net() and changes preinit_net() back to a void function, and calls\nns_common_init() after preinit_net() succeeded. Then, we can jump to\nimmediately after ns_common_free() of the put_userns: label.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-09-17 17:16:56","updated_at":"2026-09-17 17:16:56"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/3220b62fbb8a55feebd2a826d5ead0f49f09ed5a","name":"https://git.kernel.org/stable/c/3220b62fbb8a55feebd2a826d5ead0f49f09ed5a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e69bde4eb566aea8fa97cbb93e0bab608964f1a5","name":"https://git.kernel.org/stable/c/e69bde4eb566aea8fa97cbb93e0bab608964f1a5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/76c847e80d2b6be047707d58e8e05eedbe2593ad","name":"https://git.kernel.org/stable/c/76c847e80d2b6be047707d58e8e05eedbe2593ad","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-90077","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90077","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 08027f6b790be1e444e4182fb4dc53faa6539d16 76c847e80d2b6be047707d58e8e05eedbe2593ad git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 08027f6b790be1e444e4182fb4dc53faa6539d16 e69bde4eb566aea8fa97cbb93e0bab608964f1a5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 08027f6b790be1e444e4182fb4dc53faa6539d16 3220b62fbb8a55feebd2a826d5ead0f49f09ed5a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.18","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.52 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2.6 7.2.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/core/net_namespace.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"76c847e80d2b6be047707d58e8e05eedbe2593ad","status":"affected","version":"08027f6b790be1e444e4182fb4dc53faa6539d16","versionType":"git"},{"lessThan":"e69bde4eb566aea8fa97cbb93e0bab608964f1a5","status":"affected","version":"08027f6b790be1e444e4182fb4dc53faa6539d16","versionType":"git"},{"lessThan":"3220b62fbb8a55feebd2a826d5ead0f49f09ed5a","status":"affected","version":"08027f6b790be1e444e4182fb4dc53faa6539d16","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/core/net_namespace.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.18"},{"lessThan":"6.18","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.52","versionType":"semver"},{"lessThanOrEqual":"7.2.*","status":"unaffected","version":"7.2.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.3-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.52","versionStartIncluding":"6.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2.6","versionStartIncluding":"6.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3-rc1","versionStartIncluding":"6.18","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: fix a resource leak in copy_net_ns() error handling path\n\nCurrently, preinit_net() does two things:\n\n  (1) call ns_common_init() which might fail\n  (2) initialize resources which does not fail\n\nHowever, preinit_net() is returning early when (1) fails, and copy_net_ns()\nis jumping to the dec_ucounts: label. As a result, resources allocated by\nnet_alloc() are leaking. We need to call key_remove_domain() and\nnet_passive_dec() in order to release resources allocated by net_alloc().\n\nWe cannot simply jump to the put_userns: label when preinit_net() failed,\nfor (2) is not yet done. But we can reorder (1) and (2), for there is no\ndependency between (1) and (2). Therefore, this patch decouples (1) from\npreinit_net() and changes preinit_net() back to a void function, and calls\nns_common_init() after preinit_net() succeeded. Then, we can jump to\nimmediately after ns_common_free() of the put_userns: label."}],"providerMetadata":{"dateUpdated":"2026-09-17T16:05:56.226Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/76c847e80d2b6be047707d58e8e05eedbe2593ad"},{"url":"https://git.kernel.org/stable/c/e69bde4eb566aea8fa97cbb93e0bab608964f1a5"},{"url":"https://git.kernel.org/stable/c/3220b62fbb8a55feebd2a826d5ead0f49f09ed5a"}],"title":"net: fix a resource leak in copy_net_ns() error handling path","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-90077","datePublished":"2026-09-17T16:05:56.226Z","dateReserved":"2026-09-11T19:38:34.785Z","dateUpdated":"2026-09-17T16:05:56.226Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-09-17 17:16:56","lastModifiedDate":"2026-09-17 17:16:56","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"90077","Ordinal":"1","Title":"net: fix a resource leak in copy_net_ns() error handling path","CVE":"CVE-2026-90077","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"90077","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: fix a resource leak in copy_net_ns() error handling path\n\nCurrently, preinit_net() does two things:\n\n  (1) call ns_common_init() which might fail\n  (2) initialize resources which does not fail\n\nHowever, preinit_net() is returning early when (1) fails, and copy_net_ns()\nis jumping to the dec_ucounts: label. As a result, resources allocated by\nnet_alloc() are leaking. We need to call key_remove_domain() and\nnet_passive_dec() in order to release resources allocated by net_alloc().\n\nWe cannot simply jump to the put_userns: label when preinit_net() failed,\nfor (2) is not yet done. But we can reorder (1) and (2), for there is no\ndependency between (1) and (2). Therefore, this patch decouples (1) from\npreinit_net() and changes preinit_net() back to a void function, and calls\nns_common_init() after preinit_net() succeeded. Then, we can jump to\nimmediately after ns_common_free() of the put_userns: label.","Type":"Description","Title":"net: fix a resource leak in copy_net_ns() error handling path"}]}}}