{"id":"CVE-2026-139337","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:18:58.590","lastModified":"2026-11-30T14:18:58.590","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nima: reject a kexec buffer whose declared size exceeds the buffer\n\nima_restore_measurement_list() parses the measurement list persisted across\nkexec.  It computes the parse end directly from the blob:\n\n\tbufendp = buf + khdr->buffer_size;\n\nkhdr->buffer_size is a u64 read straight from the persisted buffer.  The\nonly length checks in the function are size >= sizeof(*khdr), version == 1\nand count -- none relates buffer_size to size, the actual buffer size the\ncaller (ima_load_kexec_buffer()) obtained from the ima-kexec-buffer region.\nima_parse_buf() bounds every field read to bufendp, so a blob whose\ninternal buffer_size exceeds the real size makes the parse loop read past\nthe end of the buffer (CWE-125).\n\nThe buffer's memory range is validated against addressable RAM by\ncommit cbf9c4b9617b (\"of: check previous kernel's ima-kexec-buffer\nagainst memory bounds\") and commit c5489d04337b (\"x86/kexec: add a\nsanity check on previous kernel's ima kexec buffer\"), but the blob's\nown declared size is never clamped to it.  Reject a buffer_size larger\nthan size before the loop.\n\nThis is on the boot-time kexec-restore path (__init) and the buffer comes\nfrom the previous kernel, so triggering it requires control of the\npersisted buffer; it is an out-of-bounds read only."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["security/integrity/ima/ima_template.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"94c3aac567a9ddb9e868a7fae3c927c08b51b7c6","lessThan":"86d5ca8cd79fec82865b9b32a06f0c28e19062cf","versionType":"git","status":"affected"},{"version":"94c3aac567a9ddb9e868a7fae3c927c08b51b7c6","lessThan":"3d1660732042d4c2ae7795255141185372bce6e2","versionType":"git","status":"affected"},{"version":"94c3aac567a9ddb9e868a7fae3c927c08b51b7c6","lessThan":"afacba62cd4a6d5fbf1a2b44a8e201e6bc69401e","versionType":"git","status":"affected"},{"version":"94c3aac567a9ddb9e868a7fae3c927c08b51b7c6","lessThan":"3343fc0c5d3e6df67f7d09b5bb59982db03a5c1d","versionType":"git","status":"affected"},{"version":"94c3aac567a9ddb9e868a7fae3c927c08b51b7c6","lessThan":"9f867274b208d0830232f01ac26ef5a92f4ec0e4","versionType":"git","status":"affected"},{"version":"94c3aac567a9ddb9e868a7fae3c927c08b51b7c6","lessThan":"6d76d153afa3ac90701a23f5715bdb3648be2f7b","versionType":"git","status":"affected"},{"version":"94c3aac567a9ddb9e868a7fae3c927c08b51b7c6","lessThan":"0f33ef07be4121c87df3d5b2fa05609d743a4570","versionType":"git","status":"affected"},{"version":"94c3aac567a9ddb9e868a7fae3c927c08b51b7c6","lessThan":"ceb24c7052cc4649e3b52a51a7cca7dfe4896cec","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["security/integrity/ima/ima_template.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"4.10","status":"affected"},{"version":"0","lessThan":"4.10","versionType":"semver","status":"unaffected"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","versionType":"semver","status":"unaffected"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","versionType":"semver","status":"unaffected"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","versionType":"semver","status":"unaffected"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/0f33ef07be4121c87df3d5b2fa05609d743a4570","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/3343fc0c5d3e6df67f7d09b5bb59982db03a5c1d","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/3d1660732042d4c2ae7795255141185372bce6e2","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/6d76d153afa3ac90701a23f5715bdb3648be2f7b","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/86d5ca8cd79fec82865b9b32a06f0c28e19062cf","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/9f867274b208d0830232f01ac26ef5a92f4ec0e4","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/afacba62cd4a6d5fbf1a2b44a8e201e6bc69401e","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/ceb24c7052cc4649e3b52a51a7cca7dfe4896cec","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}