{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99725","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.431Z","datePublished":"2026-11-20T05:51:01.408Z","dateUpdated":"2026-11-22T11:09:52.818Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-22T11:09:52.818Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncipso: fix optlen corruption in cipso_v4_delopt()\n\ncipso_v4_delopt() recomputes the option length by walking the option\nbuffer after the CIPSO option has been moved out.  The walk then reads\nthe stale bytes at the tail of the buffer as option data, and a crafted\nsetsockopt(IP_OPTIONS) buffer can make it treat one of them as an option\nlength, increasing opt->opt.optlen beyond the valid option data.\n\nThe corrupted length stays on the socket and is later used as the copy\nlength by getsockopt(IP_OPTIONS) and by the udp/raw/ping sendmsg paths,\nwhere it exceeds the size of the buffers they copy into.\n\nCompute the new length from the intact options before the move and\nsubtract the CIPSO length, and fill the padding with IPOPT_END."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - do_ip_setsockopt(IP_OPTIONS) installs the caller's buffer via ip_options_get() on inet_opt; cipso_v4_delopt() then memmoves the CIPSO option out and cipso_v4_get_actual_opt_len() treats a stale tail byte of that buffer as an option length. On-wire options saved by tcp_v4_save_options() are rebuilt by __ip_options_echo() with CIPSO last, so a remote SYN does not supply the length byte that inflates opt.optlen.\nAC:H - netlbl_sock_delattr() corrupts a userspace IP_OPTIONS buffer in NLBL_REQSKB: netlbl_sock_setattr() returned -EDESTADDRREQ for ADDRSELECT, and selinux_netlbl_socket_setsockopt() blocks IP_OPTIONS once NLBL_LABELED. connect(AF_UNSPEC) calls selinux_netlbl_socket_connect_helper(). Smack does this from smack_netlbl_delete() only for a smk_net4addr_list host. cipso_v4_validate() needs a DOI and that map, both GENL_ADMIN_PERM in init_user_ns.\nPR:L - ip_options_compile() accepts a userspace IPOPT_CIPSO option when ns_capable(net->user_ns, CAP_NET_RAW) is true, which holds for the owner of a user namespace that owns the socket's netns.\nUI:N - The attacker calls setsockopt(IP_OPTIONS) and then connect(AF_UNSPEC), which selinux_netlbl_socket_connect_helper() turns into netlbl_sock_delattr() when nlbl_state is NLBL_REQSKB.\nS:U - The inflated opt.optlen is consumed inside the caller's kernel, by do_ip_getsockopt(), udp_sendmsg(), raw_sendmsg(), ping_v4_sendmsg(), and ip_setup_cork(), the same security authority as the socket.\nC:H - do_ip_getsockopt(IP_OPTIONS) memcpy()s sizeof(struct ip_options)+opt.optlen out of an inet_opt that ip_options_get() allocated with at most 40 bytes of __data, then copy_to_sockptr() returns min(user length, opt.optlen) bytes of opt->__data to the caller. cipso_v4_get_actual_opt_len() adds a stale data[iter+1] (u8, up to 255) and stores the result in the unsigned char optlen, so the copy reads on the order of 200 bytes past the allocation.\nI:H - udp_sendmsg(), raw_sendmsg(), and ping_v4_sendmsg() memcpy socket options into a DEFINE_RAW_FLEX buffer of IP_OPTIONS_DATA_FIXED_SIZE (40) using opt.optlen as the added length, and ip_setup_cork() memcpy()s that length into kmalloc(sizeof(struct ip_options)+40). optlen above 40 is an out-of-bounds write of up to about 215 bytes on that stack frame and that heap object.\nA:H - Those copies overwrite the stack past the 40-byte option tail in do_ip_getsockopt() and the sendmsg paths. On a TCP socket, cipso_v4_sock_delattr() skips the icsk_ext_hdr_len update when hdr_delta is negative, so a later skb_push() in __ip_queue_xmit() uses the inflated optlen against headroom reserved for the original length and faults."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv4/cipso_ipv4.c"],"versions":[{"version":"014ab19a69c325f52d7bae54ceeda73d6307ae0c","lessThan":"699141380f7f249b7ee594198d9bea6bcd4862ea","status":"affected","versionType":"git"},{"version":"014ab19a69c325f52d7bae54ceeda73d6307ae0c","lessThan":"4077bd2bcebf43922f84aa87f6839153212df509","status":"affected","versionType":"git"},{"version":"014ab19a69c325f52d7bae54ceeda73d6307ae0c","lessThan":"0d9a6f9778ccd4401ded4ec9faf750b7b4a14ce7","status":"affected","versionType":"git"},{"version":"014ab19a69c325f52d7bae54ceeda73d6307ae0c","lessThan":"1f1f8e8c5176234fa31858cd25f2e9b88aac0a45","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv4/cipso_ipv4.c"],"versions":[{"version":"2.6.28","status":"affected"},{"version":"0","lessThan":"2.6.28","status":"unaffected","versionType":"semver"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.5","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.28","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.28","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.28","versionEndExcluding":"7.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.28","versionEndExcluding":"7.4-rc2"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/699141380f7f249b7ee594198d9bea6bcd4862ea"},{"url":"https://git.kernel.org/stable/c/4077bd2bcebf43922f84aa87f6839153212df509"},{"url":"https://git.kernel.org/stable/c/0d9a6f9778ccd4401ded4ec9faf750b7b4a14ce7"},{"url":"https://git.kernel.org/stable/c/1f1f8e8c5176234fa31858cd25f2e9b88aac0a45"}],"title":"cipso: fix optlen corruption in cipso_v4_delopt()","x_generator":{"engine":"bippy-1.2.0"}}}}