{"id":"CVE-2026-89571","aliases":["CVE-2026-89571"],"related":[],"kind":"vulnerability","state":"published","title":"cxl/features: bound fwctl command payload to the input buffer","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/features: bound fwctl command payload to the input buffer\n\nfwctl_cmd_rpc() copies cmd->in_len bytes into inbuf = kvzalloc(cmd->in_len)\nand passes inbuf and in_len to ->fw_rpc(). The CXL callback cxlctl_fw_rpc()\nignores in_len and never checks the user-controlled op_size against it.\n\ncxlctl_set_feature() bounds op_size only from below\n(op_size <= sizeof(feat_in->hdr)) and then reads op_size - sizeof(hdr)\nbytes from feat_in->feat_data via cxl_set_feature(). With a small in_len\nand a large op_size the first memcpy() already reads past the\nkvzalloc(in_len) buffer; the out-of-bounds bytes are placed in the mailbox\npayload and sent to the device, and a large enough op_size can walk into\nunmapped memory and oops the kernel. The Get paths pin op_size to a fixed\nsize but likewise read the input struct without checking in_len.\n\nReject, at the single dispatch point, any request whose fixed header plus\nop_size does not fit in the copied-in buffer. The lower-bound test guards\nthe subtraction and ensures op_size was copied in before it is read.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/features: bound fwctl command payload to the input buffer\n\nfwctl_cmd_rpc() copies cmd->in_len bytes into inbuf = kvzalloc(cmd->in_len)\nand passes inbuf and in_len to ->fw_rpc(). The CXL callback cxlctl_fw_rpc()\nignores in_len and never checks the user-controlled op_size against it.\n\ncxlctl_set_feature() bounds op_size only from below\n(op_size <= sizeof(feat_in->hdr)) and then reads op_size - sizeof(hdr)\nbytes from feat_in->feat_data via cxl_set_feature(). With a small in_len\nand a large op_size the first memcpy() already reads past the\nkvzalloc(in_len) buffer; the out-of-bounds bytes are placed in the mailbox\npayload and sent to the device, and a large enough op_size can walk into\nunmapped memory and oops the kernel. The Get paths pin op_size to a fixed\nsize but likewise read the input struct without checking in_len.\n\nReject, at the single dispatch point, any request whose fixed header plus\nop_size does not fit in the copied-in buffer. The lower-bound test guards\nthe subtraction and ensures op_size was copied in before it is read.","source":"cvelist"}],"published":"2026-09-11T19:44:40.328Z","modified":"2026-10-19T09:17:53.003Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"eb5dfcb9e36d0e46089fec777d911313c1876fa3","fixed":"14d52c15d5d99477b20a2d61fe36f347080da6cd","status":"affected"},{"type":"git","introduced":"eb5dfcb9e36d0e46089fec777d911313c1876fa3","fixed":"d8957545fe96f7905791c937758ebfc1ae1e5b17","status":"affected"},{"type":"git","introduced":"eb5dfcb9e36d0e46089fec777d911313c1876fa3","fixed":"f687394af983df5660b6afae7e0d06969f3af206","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.15","status":"unaffected"},{"type":"semver","introduced":"6.18.50","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.4","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/14d52c15d5d99477b20a2d61fe36f347080da6cd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d8957545fe96f7905791c937758ebfc1ae1e5b17","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f687394af983df5660b6afae7e0d06969f3af206","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89571","url":"https://www.cve.org/CVERecord?id=CVE-2026-89571","licence":"CVE Terms of Use","modified":"2026-10-19T08:49:04.541Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89571","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89571","licence":"Public domain","modified":"2026-10-19T09:17:53.003Z"}],"updatedAt":"2026-11-25T22:59:38.070Z","epss":{"score":0.00124,"percentile":0.02295,"date":"2026-12-01T12:00:22.000Z"}}