{"id":"CVE-2019-25160","state":"PUBLISHED","title":"netlabel: fix out-of-bounds memory accesses","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetlabel: fix out-of-bounds memory accesses\n\nThere are two array out-of-bounds memory accesses, one in\ncipso_v4_map_lvl_valid(), the other in netlbl_bitmap_walk().  Both\nerrors are embarassingly simple, and the fixes are straightforward.\n\nAs a FYI for anyone backporting this patch to kernels prior to v4.8,\nyou'll want to apply the netlbl_bitmap_walk() patch to\ncipso_v4_bitmap_walk() as netlbl_bitmap_walk() doesn't exist before\nLinux v4.8.","publishedAt":"2024-02-26T17:20:19.490Z","updatedAt":"2026-08-05T08:43:45.278Z","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":"446fda4f26822b2d42ab3396aafcedf38a9ff2b6","status":"affected","lessThan":"97bc3683c24999ee621d847c9348c75d2fe86272","versionType":"git"},{"version":"446fda4f26822b2d42ab3396aafcedf38a9ff2b6","status":"affected","lessThan":"c61d01faa5550e06794dcf86125ccd325bfad950","versionType":"git"},{"version":"446fda4f26822b2d42ab3396aafcedf38a9ff2b6","status":"affected","lessThan":"dc18101f95fa6e815f426316b8b9a5cee28a334e","versionType":"git"},{"version":"446fda4f26822b2d42ab3396aafcedf38a9ff2b6","status":"affected","lessThan":"1c973f9c7cc2b3caae93192fdc8ecb3f0b4ac000","versionType":"git"},{"version":"446fda4f26822b2d42ab3396aafcedf38a9ff2b6","status":"affected","lessThan":"fcfe700acdc1c72eab231300e82b962bac2b2b2c","versionType":"git"},{"version":"446fda4f26822b2d42ab3396aafcedf38a9ff2b6","status":"affected","lessThan":"e3713abc4248aa6bcc11173d754c418b02a62cbb","versionType":"git"},{"version":"446fda4f26822b2d42ab3396aafcedf38a9ff2b6","status":"affected","lessThan":"fbf9578919d6c91100ec63acf2cba641383f6c78","versionType":"git"},{"version":"446fda4f26822b2d42ab3396aafcedf38a9ff2b6","status":"affected","lessThan":"5578de4834fe0f2a34fedc7374be691443396d1f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv4/cipso_ipv4.c","net/netlabel/netlabel_kapi.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.19","versionType":"semver"},{"version":"3.16.66","status":"unaffected","lessThanOrEqual":"3.16.*","versionType":"semver"},{"version":"3.18.137","status":"unaffected","lessThanOrEqual":"3.18.*","versionType":"semver"},{"version":"4.4.177","status":"unaffected","lessThanOrEqual":"4.4.*","versionType":"semver"},{"version":"4.9.163","status":"unaffected","lessThanOrEqual":"4.9.*","versionType":"semver"},{"version":"4.14.106","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.28","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"4.20.15","status":"unaffected","lessThanOrEqual":"4.20.*","versionType":"semver"},{"version":"5.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv4/cipso_ipv4.c","net/netlabel/netlabel_kapi.c"]}],"references":["https://git.kernel.org/stable/c/97bc3683c24999ee621d847c9348c75d2fe86272","https://git.kernel.org/stable/c/c61d01faa5550e06794dcf86125ccd325bfad950","https://git.kernel.org/stable/c/dc18101f95fa6e815f426316b8b9a5cee28a334e","https://git.kernel.org/stable/c/1c973f9c7cc2b3caae93192fdc8ecb3f0b4ac000","https://git.kernel.org/stable/c/fcfe700acdc1c72eab231300e82b962bac2b2b2c","https://git.kernel.org/stable/c/e3713abc4248aa6bcc11173d754c418b02a62cbb","https://git.kernel.org/stable/c/fbf9578919d6c91100ec63acf2cba641383f6c78","https://git.kernel.org/stable/c/5578de4834fe0f2a34fedc7374be691443396d1f"],"weaknesses":[],"ingestedAt":"2026-10-29T19:45:53.332Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2019/25xxx/CVE-2019-25160.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2019-25160","state":"PUBLISHED","datePublished":"2024-02-26T17:20:19.490Z","dateUpdated":"2026-08-05T08:43:45.278Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-26T17:07:20.465Z"},"containers":{"cna":{"title":"netlabel: fix out-of-bounds memory accesses","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetlabel: fix out-of-bounds memory accesses\n\nThere are two array out-of-bounds memory accesses, one in\ncipso_v4_map_lvl_valid(), the other in netlbl_bitmap_walk().  Both\nerrors are embarassingly simple, and the fixes are straightforward.\n\nAs a FYI for anyone backporting this patch to kernels prior to v4.8,\nyou'll want to apply the netlbl_bitmap_walk() patch to\ncipso_v4_bitmap_walk() as netlbl_bitmap_walk() doesn't exist before\nLinux v4.8."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"446fda4f26822b2d42ab3396aafcedf38a9ff2b6","status":"affected","lessThan":"97bc3683c24999ee621d847c9348c75d2fe86272","versionType":"git"},{"version":"446fda4f26822b2d42ab3396aafcedf38a9ff2b6","status":"affected","lessThan":"c61d01faa5550e06794dcf86125ccd325bfad950","versionType":"git"},{"version":"446fda4f26822b2d42ab3396aafcedf38a9ff2b6","status":"affected","lessThan":"dc18101f95fa6e815f426316b8b9a5cee28a334e","versionType":"git"},{"version":"446fda4f26822b2d42ab3396aafcedf38a9ff2b6","status":"affected","lessThan":"1c973f9c7cc2b3caae93192fdc8ecb3f0b4ac000","versionType":"git"},{"version":"446fda4f26822b2d42ab3396aafcedf38a9ff2b6","status":"affected","lessThan":"fcfe700acdc1c72eab231300e82b962bac2b2b2c","versionType":"git"},{"version":"446fda4f26822b2d42ab3396aafcedf38a9ff2b6","status":"affected","lessThan":"e3713abc4248aa6bcc11173d754c418b02a62cbb","versionType":"git"},{"version":"446fda4f26822b2d42ab3396aafcedf38a9ff2b6","status":"affected","lessThan":"fbf9578919d6c91100ec63acf2cba641383f6c78","versionType":"git"},{"version":"446fda4f26822b2d42ab3396aafcedf38a9ff2b6","status":"affected","lessThan":"5578de4834fe0f2a34fedc7374be691443396d1f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv4/cipso_ipv4.c","net/netlabel/netlabel_kapi.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.19","versionType":"semver"},{"version":"3.16.66","status":"unaffected","lessThanOrEqual":"3.16.*","versionType":"semver"},{"version":"3.18.137","status":"unaffected","lessThanOrEqual":"3.18.*","versionType":"semver"},{"version":"4.4.177","status":"unaffected","lessThanOrEqual":"4.4.*","versionType":"semver"},{"version":"4.9.163","status":"unaffected","lessThanOrEqual":"4.9.*","versionType":"semver"},{"version":"4.14.106","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.28","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"4.20.15","status":"unaffected","lessThanOrEqual":"4.20.*","versionType":"semver"},{"version":"5.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv4/cipso_ipv4.c","net/netlabel/netlabel_kapi.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/97bc3683c24999ee621d847c9348c75d2fe86272"},{"url":"https://git.kernel.org/stable/c/c61d01faa5550e06794dcf86125ccd325bfad950"},{"url":"https://git.kernel.org/stable/c/dc18101f95fa6e815f426316b8b9a5cee28a334e"},{"url":"https://git.kernel.org/stable/c/1c973f9c7cc2b3caae93192fdc8ecb3f0b4ac000"},{"url":"https://git.kernel.org/stable/c/fcfe700acdc1c72eab231300e82b962bac2b2b2c"},{"url":"https://git.kernel.org/stable/c/e3713abc4248aa6bcc11173d754c418b02a62cbb"},{"url":"https://git.kernel.org/stable/c/fbf9578919d6c91100ec63acf2cba641383f6c78"},{"url":"https://git.kernel.org/stable/c/5578de4834fe0f2a34fedc7374be691443396d1f"}],"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 - Crafted IPv4 packets with CIPSO options reach the bug via ip_rcv_finish_core -> ip_rcv_options -> ip_options_compile -> cipso_v4_validate -> cipso_v4_map_lvl_valid/netlbl_bitmap_walk, with no local access required. This is a net/ stack path processing remote peer packet data.\nAC:L - With a CIPSO MAP_TRANS DOI configured (the labeled-networking deployment this subsystem targets), an attacker reliably triggers the OOB by setting an out-of-range level byte or category bitmap; DOI values are probeable via ICMP parameter-problem offsets. No race or other attacker-uncontrollable condition is required.\nPR:N - Incoming skbs take the CIPSO path in __ip_options_compile without CAP_NET_RAW or any authentication; the privilege check applies only when skb is NULL (setsockopt). A remote unauthenticated sender can trigger the vulnerable validation.\nUI:N - Exploitation requires only sending crafted IP packets to the host; no victim user action is needed.\nS:U - Impact is confined to the receiving kernel's NetLabel/CIPSO processing and memory; there is no VM escape, IOMMU bypass, or other cross-authority boundary crossing.\nC:H - cipso_v4_map_lvl_valid indexes an attacker-controlled u8 into the DOI level array without a size check, enabling a large kernel heap OOB read (up to ~1KB when cipso_size is small). Per guidance, unbounded OOB reads score Confidentiality High.\nI:N - Both defects are out-of-bounds reads with no write, UAF, or control-flow corruption primitive; later map_lvl_ntoh still bounds-checks before applying labels, so there is no integrity impact.\nA:H - The OOB reads can fault on unmapped pages and cause a kernel oops/panic, and a remote attacker can trigger them repeatedly for DoS against CIPSO-enabled hosts."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:43:45.278Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"3.16.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"3.18.137"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"4.4.177"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"4.9.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"4.14.106"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"4.19.28"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"4.20.15"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"5.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2019-25160","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-02-27T16:02:54.112450Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:12:00.236Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/97bc3683c24999ee621d847c9348c75d2fe86272","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/c61d01faa5550e06794dcf86125ccd325bfad950","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/dc18101f95fa6e815f426316b8b9a5cee28a334e","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/1c973f9c7cc2b3caae93192fdc8ecb3f0b4ac000","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/fcfe700acdc1c72eab231300e82b962bac2b2b2c","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/e3713abc4248aa6bcc11173d754c418b02a62cbb","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/fbf9578919d6c91100ec63acf2cba641383f6c78","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/5578de4834fe0f2a34fedc7374be691443396d1f","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-05T03:00:19.401Z"}}]}}}