CVE-2026-98775

Updated on 18 Oct 2026

Severity

7.8 High severity

Details

CVSS score
7.8

Overview

About vulnerability

In the Linux kernel, the following vulnerability has been resolved:

nitro_enclaves: fix use-after-free on SLOT_ALLOC failure

When ne_create_vm_ioctl() fails the SLOT_ALLOC request after anon_inode_getfile() has succeeded, the error path calls fput(enclave_file) and then frees ne_enclave.

In normal userspace context, fput() defers the final __fput() via task_work. ne_enclave_release() therefore runs after ne_enclave has already been freed and dereferences ne_enclave->slot_uid, causing a use-after-free: KASAN: slab-use-after-free in ne_enclave_release.

The enclave has no slot allocated and is not yet linked into the enclaves list on this error path, so ne_enclave_release() is expected to return early when slot_uid is zero. However, reading slot_uid already accesses the freed object.

Clear enclave_file->private_data before fput() on the error path. ne_enclave_release() then returns immediately when private_data is NULL, leaving the ioctl error path as the sole owner of ne_enclave. This is safe because the file has not been fd_install()’d yet.

Tested on an AWS EC2 m5.2xlarge with CONFIG_KASAN=y. Without the patch, the reproducer triggers a KASAN slab-use-after-free on every SLOT_ALLOC failure. With the patch, no KASAN report is produced and the SLOT_ALLOC error is still returned. Normal enclave creation and teardown are unaffected.

Details

Affected packages:
linux @ 5.10.259 (+4 more)

Fixes

KernelCare state

Live-patch status from KernelCare for each operating system.

Operating system Status Covered kernels
AlmaLinux 9.6 ESU Planned —
Amazon Linux 2 Released
117 kernels
  • 4.14.192-147.314.amzn2
  • 4.14.193-149.317.amzn2
  • 4.14.198-152.320.amzn2
  • 4.14.200-155.322.amzn2
  • 4.14.203-156.332.amzn2
  • 4.14.209-160.335.amzn2
  • 4.14.214-160.339.amzn2
  • 4.14.209-160.339.amzn2
  • 4.14.219-161.340.amzn2
  • 4.14.225-168.357.amzn2
  • 4.14.231-173.360.amzn2
  • 4.14.219-164.354.amzn2
  • 4.14.225-169.362.amzn2
  • 4.14.232-176.381.amzn2
  • 4.14.232-177.418.amzn2
  • 4.14.238-182.421.amzn2
  • 4.14.238-182.422.amzn2
  • 4.14.231-173.361.amzn2
  • 4.14.241-184.433.amzn2
  • 4.14.243-185.433.amzn2
  • 4.14.246-187.474.amzn2
  • 4.14.248-189.473.amzn2
  • 4.14.252-195.481.amzn2
  • 4.14.252-195.483.amzn2
  • 4.14.256-197.484.amzn2
  • 4.14.262-200.489.amzn2
  • 4.14.268-205.500.amzn2
  • 4.14.273-207.502.amzn2
  • 4.14.275-207.503.amzn2
  • 4.14.276-211.499.amzn2
  • 4.14.281-212.502.amzn2
  • 4.14.285-215.501.amzn2
  • 4.14.287-215.504.amzn2
  • 4.14.290-217.505.amzn2
  • 4.14.291-218.527.amzn2
  • 4.14.294-220.533.amzn2
  • 4.14.296-222.539.amzn2
  • 4.14.299-223.520.amzn2
  • 4.14.301-224.520.amzn2
  • 4.14.304-226.531.amzn2
  • 4.14.301-225.528.amzn2
  • 4.14.309-231.529.amzn2
  • 4.14.305-227.531.amzn2
  • 4.14.313-235.533.amzn2
  • 4.14.314-237.533.amzn2
  • 4.14.314-238.539.amzn2
  • 4.14.318-240.529.amzn2
  • 4.14.318-241.531.amzn2
  • 4.14.320-242.534.amzn2
  • 4.14.320-243.544.amzn2
  • 4.14.322-244.536.amzn2
  • 4.14.311-233.529.amzn2
  • 4.14.322-244.539.amzn2
  • 4.14.326-245.539.amzn2
  • 4.14.327-246.539.amzn2
  • 4.14.328-248.540.amzn2
  • 4.14.322-246.539.amzn2
  • 4.14.330-250.540.amzn2
  • 4.14.334-252.552.amzn2
  • 4.14.336-253.554.amzn2
  • 4.14.336-255.557.amzn2
  • 4.14.336-256.559.amzn2
  • 4.14.336-257.562.amzn2
  • 4.14.336-256.557.amzn2
  • 4.14.336-257.568.amzn2
  • 4.14.336-257.566.amzn2
  • 4.14.343-261.564.amzn2
  • 4.14.343-259.562.amzn2
  • 4.14.343-260.564.amzn2
  • 4.14.348-265.562.amzn2
  • 4.14.344-262.563.amzn2
  • 4.14.345-262.561.amzn2
  • 4.14.348-265.565.amzn2
  • 4.14.349-266.564.amzn2
  • 4.14.350-266.564.amzn2
  • 4.14.352-268.568.amzn2
  • 4.14.352-267.564.amzn2
  • 4.14.353-270.569.amzn2
  • 4.14.352-268.569.amzn2
  • 4.14.355-271.569.amzn2
  • 4.14.355-275.582.amzn2
  • 4.14.355-275.570.amzn2
  • 4.14.355-275.572.amzn2
  • 4.14.355-275.591.amzn2
  • 4.14.355-274.598.amzn2
  • 4.14.355-275.603.amzn2
  • 4.14.355-276.618.amzn2
  • 4.14.355-276.639.amzn2
  • 4.14.355-277.643.amzn2
  • 4.14.355-277.647.amzn2
  • 4.14.355-280.652.amzn2
  • 4.14.355-280.664.amzn2
  • 4.14.355-280.651.amzn2
  • 4.14.355-280.672.amzn2
  • 4.14.355-280.679.amzn2
  • 4.14.355-280.684.amzn2
  • 4.14.355-280.695.amzn2
  • 4.14.355-280.698.amzn2
  • 4.14.355-280.706.amzn2
  • 4.14.355-280.708.amzn2
  • 4.14.355-280.710.amzn2
  • 4.14.355-280.713.amzn2
  • 4.14.355-281.714.amzn2
  • 4.14.355-280.714.amzn2
  • 4.14.355-281.727.amzn2
  • 4.14.355-282.728.amzn2
  • 4.14.355-282.729.amzn2
  • 4.14.355-284.735.amzn2
  • 4.14.355-282.731.amzn2
  • 4.14.355-282.733.amzn2
  • 4.14.355-284.740.amzn2
  • 4.14.355-284.737.amzn2
  • 4.14.355-284.741.amzn2
  • 4.14.355-284.742.amzn2
  • 4.14.355-284.746.amzn2
  • 4.14.355-287.753.amzn2
  • 4.14.355-287.750.amzn2