{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-68400",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-07-30T09:28:09.389Z",
        "datePublished": "2026-08-10T12:04:19.952Z",
        "dateUpdated": "2026-08-17T05:04:48.935Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-17T05:04:48.935Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nfirmware: arm_ffa: Fix Endpoint Memory Access Descriptor offset calculation\n\nUse the descriptor's `ep_mem_offset` to calculate the start of the endpoint\nmemory access array and to comply with the FF-A spec instead of defaulting\nto `sizeof(struct ffa_mem_region)`.\nThis requires moving `ffa_mem_region_additional_setup()` earlier in the setup\nflow.\nAlso, add sanity checks to ensure the calculated descriptor offsets do not\nexceed `max_fragsize`."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The vulnerable FF-A memory-descriptor setup is reached only through local kernel interfaces — TEE device ioctls (/dev/tee*) driving optee/tstee shared-memory registration and lend paths, or host-side FF-A SMC handling. No network or remote packet input reaches this code.\nAC:L - The out-of-bounds descriptor writes follow deterministically from the endpoint count and offsets used to build the transaction; no race, no memory-layout luck, and no condition outside the attacker's influence is needed to drive the unvalidated offset arithmetic past max_fragsize.\nPR:L - An unprivileged local process holding a handle to the TEE device node (common on Android/embedded ARM systems, where TEE clients are ordinary user processes) can drive ffa_setup_and_transmit() via shared-memory registration/lend operations; no root or capability check gates that path.\nUI:N - The vulnerable path is entered directly from the attacker's own ioctl/FF-A operations; no action by another user or administrator is required.\nS:U - The out-of-bounds writes corrupt kernel memory adjacent to the FF-A TX buffer within the same kernel security authority, so impact is scored as Unchanged even though the same offset confusion also feeds the pKVM/secure-world descriptor parsing.\nC:H - Descriptor offsets computed without validation against max_fragsize let structured data be placed and read back outside the intended buffer, and the resulting heap corruption is leverageable into disclosure of adjacent kernel memory, including data later handed to the secure world.\nI:H - This is an out-of-bounds write of attacker-influenced endpoint descriptor fields (receiver, attrs, composite_off, impdef values) plus a memset past the end of the TX buffer, giving heap corruption that can be groomed into a control-flow or data-structure overwrite primitive.\nA:H - Writing endpoint memory access descriptors beyond the RX/TX buffer corrupts unrelated kernel allocations and readily produces an oops or panic, and the mis-parsed descriptor can also drive the memory transaction into an inconsistent state with the secure partition."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/firmware/arm_ffa/driver.c",
                        "include/linux/arm_ffa.h"
                    ],
                    "versions": [
                        {
                            "version": "113580530ee7dc61e668b641d657920734533b9f",
                            "lessThan": "b39b08e6bee812514b449dc874076890e6b871a0",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "113580530ee7dc61e668b641d657920734533b9f",
                            "lessThan": "8ef18f0ab3c0ec1eac77289f5a542bd96a8a6d66",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "113580530ee7dc61e668b641d657920734533b9f",
                            "lessThan": "b4d961351aa84fdf0148783fb1f3a1391b8a0adb",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/firmware/arm_ffa/driver.c",
                        "include/linux/arm_ffa.h"
                    ],
                    "versions": [
                        {
                            "version": "6.7",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.7",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.42",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.1.6",
                            "lessThanOrEqual": "7.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.2",
                            "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": "6.7",
                                    "versionEndExcluding": "6.18.42"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.7",
                                    "versionEndExcluding": "7.1.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.7",
                                    "versionEndExcluding": "7.2"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/b39b08e6bee812514b449dc874076890e6b871a0"
                },
                {
                    "url": "https://git.kernel.org/stable/c/8ef18f0ab3c0ec1eac77289f5a542bd96a8a6d66"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b4d961351aa84fdf0148783fb1f3a1391b8a0adb"
                }
            ],
            "title": "firmware: arm_ffa: Fix Endpoint Memory Access Descriptor offset calculation",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}