{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-49078",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-02-26T01:49:39.247Z",
        "datePublished": "2025-02-26T01:54:40.207Z",
        "dateUpdated": "2026-08-05T08:53:46.564Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T08:53:46.564Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nlz4: fix LZ4_decompress_safe_partial read out of bound\n\nWhen partialDecoding, it is EOF if we've either filled the output buffer\nor can't proceed with reading an offset for following match.\n\nIn some extreme corner cases when compressed data is suitably corrupted,\nUAF will occur.  As reported by KASAN [1], LZ4_decompress_safe_partial\nmay lead to read out of bound problem during decoding.  lz4 upstream has\nfixed it [2] and this issue has been disscussed here [3] before.\n\ncurrent decompression routine was ported from lz4 v1.8.3, bumping\nlib/lz4 to v1.9.+ is certainly a huge work to be done later, so, we'd\nbetter fix it first.\n\n[1] https://lore.kernel.org/all/000000000000830d1205cf7f0477@google.com/\n[2] https://github.com/lz4/lz4/commit/c5d6f8a8be3927c0bec91bcc58667a6cfad244ad#\n[3] https://lore.kernel.org/all/CC666AE8-4CA4-4951-B6FB-A2EFDE3AC03B@fb.com/"
                }
            ],
            "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 bug is only reachable via LZ4_decompress_safe_partial, whose sole in-tree caller is EROFS decompression on a locally mounted image (syzbot repro: mount erofs loop image then open/read a compressed file); it is not reachable from network packet processing.\nAC:L - An attacker who controls EROFS compressed contents can craft suitably corrupted LZ4 streams that deterministically hit the missing ip>=(iend-2) EOF check during partial decoding, as demonstrated by reliable syzkaller reproducers.\nPR:L - Once a malicious or legacy EROFS image is mounted, an unprivileged local user can trigger the vulnerable decompress path simply by reading a compressed file; mounting is treated as an environmental precondition and EROFS is widely deployed (e.g. Android).\nUI:N - No additional victim interaction is required beyond the attacker-controlled image being present and read; the open/read that drives z_erofs_decompressqueue_work needs no further user action.\nS:U - Impact is confined to the host kernel’s memory authority (OOB/UAF during in-kernel decompression); there is no VM/IOMMU/sandbox boundary crossing.\nC:H - The defect is an out-of-bounds/use-after-free read (KASAN: UAF Read in LZ4_readLE16 past the compressed input into a freed page), which can disclose adjacent or reused memory contents.\nI:H - Classified and observed as a use-after-free memory-corruption bug in the LZ4 partial decoder; per scoring guidance UAFs are treated as enabling strong integrity impact (heap spray / controlled subsequent decode state), so I:H is appropriate.\nA:H - OOB reads past vm_map_ram or into invalid/freed pages can cause kernel oops/GPF (also seen as general protection fault in LZ4_decompress_safe_partial on syzbot), yielding high availability impact."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "lib/lz4/lz4_decompress.c"
                    ],
                    "versions": [
                        {
                            "version": "2209fda323e2fd2a2d0885595fd5097717f8d2aa",
                            "lessThan": "73953dfa9d50e5c9fe98ee13fd1d3427aa12a0a3",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2209fda323e2fd2a2d0885595fd5097717f8d2aa",
                            "lessThan": "6adc01a7aa37445dafe8846faa0610a86029b253",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2209fda323e2fd2a2d0885595fd5097717f8d2aa",
                            "lessThan": "9fb8bc6cfc58773ce95414e11c9ccc8fc6ac4927",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2209fda323e2fd2a2d0885595fd5097717f8d2aa",
                            "lessThan": "e64dbe97c05c769525cbca099ddbd22485630235",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2209fda323e2fd2a2d0885595fd5097717f8d2aa",
                            "lessThan": "467d5e200ab4486b744fe1776154a43d1aa22d4b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2209fda323e2fd2a2d0885595fd5097717f8d2aa",
                            "lessThan": "eafc0a02391b7b36617b36c97c4b5d6832cf5e24",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "lib/lz4/lz4_decompress.c"
                    ],
                    "versions": [
                        {
                            "version": "4.20",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.20",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.189",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.111",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.34",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.16.20",
                            "lessThanOrEqual": "5.16.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.17.3",
                            "lessThanOrEqual": "5.17.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.18",
                            "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.20",
                                    "versionEndExcluding": "5.4.189"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.20",
                                    "versionEndExcluding": "5.10.111"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.20",
                                    "versionEndExcluding": "5.15.34"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.20",
                                    "versionEndExcluding": "5.16.20"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.20",
                                    "versionEndExcluding": "5.17.3"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.20",
                                    "versionEndExcluding": "5.18"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/73953dfa9d50e5c9fe98ee13fd1d3427aa12a0a3"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6adc01a7aa37445dafe8846faa0610a86029b253"
                },
                {
                    "url": "https://git.kernel.org/stable/c/9fb8bc6cfc58773ce95414e11c9ccc8fc6ac4927"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e64dbe97c05c769525cbca099ddbd22485630235"
                },
                {
                    "url": "https://git.kernel.org/stable/c/467d5e200ab4486b744fe1776154a43d1aa22d4b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/eafc0a02391b7b36617b36c97c4b5d6832cf5e24"
                }
            ],
            "title": "lz4: fix LZ4_decompress_safe_partial read out of bound",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "cvssV3_1": {
                            "scope": "UNCHANGED",
                            "version": "3.1",
                            "baseScore": 7.8,
                            "attackVector": "LOCAL",
                            "baseSeverity": "HIGH",
                            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                            "integrityImpact": "HIGH",
                            "userInteraction": "NONE",
                            "attackComplexity": "LOW",
                            "availabilityImpact": "HIGH",
                            "privilegesRequired": "LOW",
                            "confidentialityImpact": "HIGH"
                        }
                    },
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2022-49078",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2025-02-27T17:59:16.973304Z"
                            }
                        }
                    }
                ],
                "problemTypes": [
                    {
                        "descriptions": [
                            {
                                "lang": "en",
                                "type": "CWE",
                                "cweId": "CWE-416",
                                "description": "CWE-416 Use After Free"
                            }
                        ]
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2025-02-27T18:02:29.956Z"
                }
            }
        ]
    }
}