{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-142861",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.333Z",
        "datePublished": "2026-12-03T03:21:03.447Z",
        "dateUpdated": "2026-12-04T03:25:26.214Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-04T03:25:26.214Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmemory: brcmstb_dpfe: Fix out-of-bounds access due to DCPU offset\n\nOn API v1/v2 boards, the DCPU coprocessor can steer kernel readl_relaxed()\nand writel_relaxed() to any address within 256 MB of the ioremapped DPFE\ndmem or regs base. The DCPU firmware provides a 28-bit offset which the\ndriver adds to the ioremap base without any bounds checking in\nget_msg_ptr().\n\nThis allows a compromised DCPU firmware to trick the host kernel into\nreading or writing arbitrary memory-mapped I/O registers in vmalloc\nspace. When combined with a root-writable sysfs file like dpfe_refresh,\nit provides an arbitrary MMIO write primitive. Similarly, world-readable\nsysfs files can be used to leak other devices' register contents.\n\nFix this by recording the resource_size() of the dmem and regs ioremaps\nat probe time, and rejecting any offset that, along with the largest\nfield accessed (DRAM_VENDOR_ERROR + sizeof(u32)), exceeds the recorded\nmapping size."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:H",
                        "baseScore": 7.3,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The offset get_msg_ptr() adds to priv->regs or priv->dmem is response[MSG_ARG0], which __send_command() readl_relaxed()s from regs+DCPU_MSG_RAM() after DPFE_CMD_GET_REFRESH or DPFE_CMD_GET_VENDOR. show_refresh(), show_vendor(), and store_refresh() are the only callers. That word is written by the on-chip DCPU into its message RAM.\nAC:L - After show_refresh() or store_refresh() issues DPFE_CMD_GET_REFRESH, __send_command() accepts the reply when REG_TO_HOST_MBOX is DCPU_RET_SUCCESS and the checksum matches get_msg_chksum(). The DCPU fills both itself, and get_msg_ptr() adds the low 28 bits (DRAM_MSG_ADDR_MASK) to the ioremap base on that same call.\nPR:N - __send_command() and get_msg_ptr() do not call capable() or inspect the caller cred. The malformed MSG_ARG0 is produced by the DCPU coprocessor, which has no Linux uid. The 0444/0644 mode of dpfe_refresh and dpfe_vendor applies only to the task that opens the attribute.\nUI:R - get_msg_ptr() is called only from show_refresh(), show_vendor(), and store_refresh(), the handlers behind the dpfe_refresh and dpfe_vendor attributes that brcmstb_dpfe_probe() installs with sysfs_create_groups(). The driver never polls them, so a host process must read or write those files.\nS:U - show_refresh(), show_vendor(), and store_refresh() issue the out-of-range readl_relaxed() and writel_relaxed() through the host kernel's DPFE ioremap. The resulting register access and any oops remain inside that host kernel's security authority.\nC:H - For msg_type 0 or 1, get_msg_ptr() returns priv->dmem or priv->regs plus an offset limited only by DRAM_MSG_ADDR_MASK (28 bits). show_refresh() then copies out the full readl_relaxed() results at info+DRAM_INFO_INTERVAL and info+DRAM_INFO_ERROR, disclosing whatever MMIO that vmalloc address holds. Each command can carry a new offset.\nI:L - store_refresh() executes writel_relaxed(val, info+DRAM_INFO_INTERVAL). info is the unchecked pointer from get_msg_ptr(), and val is the single u32 kstrtoul() parses from the sysfs buffer. The DCPU selects the destination register and the file writer supplies the stored word.\nA:H - Those handlers feed the raw get_msg_ptr() result to readl_relaxed() or writel_relaxed() with no probe_kernel_read(). An offset past the mapped resource (the binding example is 0x180 bytes for dpfe-cpu and 0x1000 for dpfe-dmem) faults in vmalloc and oopses. Landing on another device's registers can also hang the SoC."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/memory/brcmstb_dpfe.c"
                    ],
                    "versions": [
                        {
                            "version": "fee5f1ef6cf76f87d9799596d06979c9e6589f2b",
                            "lessThan": "c02029d73f829f63cbaf0ec7bfe08a7499239cd2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "fee5f1ef6cf76f87d9799596d06979c9e6589f2b",
                            "lessThan": "d3e97147bc5ab8e15720565f718b37783a2ce299",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "fee5f1ef6cf76f87d9799596d06979c9e6589f2b",
                            "lessThan": "699fd680cd30a48915846b1ae9763ccef9d583ea",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "fee5f1ef6cf76f87d9799596d06979c9e6589f2b",
                            "lessThan": "6c1832ac2d8f143349e1b2597d3f43b9f7a2fc30",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "fee5f1ef6cf76f87d9799596d06979c9e6589f2b",
                            "lessThan": "1e5d89f835d55e59e2fcfb7e2407d74bc3983695",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "fee5f1ef6cf76f87d9799596d06979c9e6589f2b",
                            "lessThan": "5aca21d188570b8b86356a562c7a668a51b1d088",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "fee5f1ef6cf76f87d9799596d06979c9e6589f2b",
                            "lessThan": "d0e60dcada94dec8aa390974d47e39b3a14677a7",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "fee5f1ef6cf76f87d9799596d06979c9e6589f2b",
                            "lessThan": "7c0b82d087908765c6c7daeb06943e21b78d523e",
                            "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/memory/brcmstb_dpfe.c"
                    ],
                    "versions": [
                        {
                            "version": "4.16",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.16",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.275",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.226",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.117",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.63",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.4",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "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": "4.16",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/c02029d73f829f63cbaf0ec7bfe08a7499239cd2"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d3e97147bc5ab8e15720565f718b37783a2ce299"
                },
                {
                    "url": "https://git.kernel.org/stable/c/699fd680cd30a48915846b1ae9763ccef9d583ea"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6c1832ac2d8f143349e1b2597d3f43b9f7a2fc30"
                },
                {
                    "url": "https://git.kernel.org/stable/c/1e5d89f835d55e59e2fcfb7e2407d74bc3983695"
                },
                {
                    "url": "https://git.kernel.org/stable/c/5aca21d188570b8b86356a562c7a668a51b1d088"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d0e60dcada94dec8aa390974d47e39b3a14677a7"
                },
                {
                    "url": "https://git.kernel.org/stable/c/7c0b82d087908765c6c7daeb06943e21b78d523e"
                }
            ],
            "title": "memory: brcmstb_dpfe: Fix out-of-bounds access due to DCPU offset",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}