Files
vuln-cve/data/2022/49xxx/CVE-2022-49956.json
T

264 lines
13 KiB
JSON

{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2022-49956",
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"state": "PUBLISHED",
"assignerShortName": "Linux",
"dateReserved": "2025-06-18T10:57:27.382Z",
"datePublished": "2025-06-18T11:00:18.341Z",
"dateUpdated": "2026-08-05T08:56:53.613Z"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux",
"dateUpdated": "2026-08-05T08:56:53.613Z"
},
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nstaging: rtl8712: fix use after free bugs\n\n_Read/Write_MACREG callbacks are NULL so the read/write_macreg_hdl()\nfunctions don't do anything except free the \"pcmd\" pointer. It\nresults in a use after free. Delete them."
}
],
"metrics": [
{
"cvssV3_1": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
"baseScore": 7,
"baseSeverity": "HIGH"
},
"scenarios": [
{
"lang": "en",
"value": "AV:L - The UAF is in the rtl8712 host-to-firmware cmd filter (`cmd_hdl_filter` → `r8712_cmd_thread`), a local driver software path for queued `cmd_obj`s, not WiFi-frame RX (Adjacent) or USB probe/URB handling (Physical); adapter presence is an environmental precondition.\nAC:H - Triggering requires a `_Read_MACREG`/`_Write_MACREG` `cmd_obj` on the cmd queue, but no in-tree caller has ever enqueued those codes since the driver was added—success depends on a condition the attacker cannot influence.\nPR:L - If those H2C commands were issued, they would come from wireless management paths gated by `CAP_NET_ADMIN`; per kernel CNA guidance that capability is reachable via user namespaces, so Privileges Required is Low rather than High.\nUI:N - Command dequeue and filter execution run entirely in the driver's cmd thread with no separate victim action such as mounting a filesystem or confirming a prompt.\nS:U - The resulting heap UAF/double-free stays inside the host kernel's security authority and does not cross a VM, IOMMU, or sandbox boundary.\nC:H - After `r8712_free_cmd_obj()` the freed `cmd_obj` is reused for `cmdcode`/`parmbuf`/`cmdsz` reads; per kernel UAF guidance that enables disclosure of reclaimed heap contents.\nI:H - The same path later double-frees `pcmd`, a classic heap UAF/double-free primitive that can be groomed into arbitrary write or control-flow hijack, so Integrity is High.\nA:H - Use-after-free and double-free of `cmd_obj` cause kernel oops/KASAN/BUG failures in the cmd thread, which is Availability High under kernel CVSS guidance."
}
]
}
],
"affected": [
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/staging/rtl8712/rtl8712_cmd.c"
],
"versions": [
{
"version": "2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef",
"lessThan": "7dce6b0ee7d78667d6c831ced957a08769973063",
"status": "affected",
"versionType": "git"
},
{
"version": "2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef",
"lessThan": "376e15487fec837301d888068a3fcc82efb6171a",
"status": "affected",
"versionType": "git"
},
{
"version": "2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef",
"lessThan": "9fd6170c5e2d0ccd027abe26f6f5ffc528e1bb27",
"status": "affected",
"versionType": "git"
},
{
"version": "2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef",
"lessThan": "d0aac7146e96bf39e79c65087d21dfa02ef8db38",
"status": "affected",
"versionType": "git"
},
{
"version": "2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef",
"lessThan": "19e3f69d19801940abc2ac37c169882769ed9770",
"status": "affected",
"versionType": "git"
},
{
"version": "2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef",
"lessThan": "dc02aaf950015850e7589696521c7fca767cea77",
"status": "affected",
"versionType": "git"
},
{
"version": "2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef",
"lessThan": "b1727def850904e4b8ba384043775672841663a1",
"status": "affected",
"versionType": "git"
},
{
"version": "2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef",
"lessThan": "e230a4455ac3e9b112f0367d1b8e255e141afae0",
"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/staging/rtl8712/rtl8712_cmd.c"
],
"versions": [
{
"version": "2.6.37",
"status": "affected"
},
{
"version": "0",
"lessThan": "2.6.37",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "4.9.328",
"lessThanOrEqual": "4.9.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "4.14.293",
"lessThanOrEqual": "4.14.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "4.19.258",
"lessThanOrEqual": "4.19.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "5.4.213",
"lessThanOrEqual": "5.4.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "5.10.142",
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "5.15.66",
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "5.19.8",
"lessThanOrEqual": "5.19.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.0",
"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": "2.6.37",
"versionEndExcluding": "4.9.328"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "2.6.37",
"versionEndExcluding": "4.14.293"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "2.6.37",
"versionEndExcluding": "4.19.258"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "2.6.37",
"versionEndExcluding": "5.4.213"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "2.6.37",
"versionEndExcluding": "5.10.142"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "2.6.37",
"versionEndExcluding": "5.15.66"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "2.6.37",
"versionEndExcluding": "5.19.8"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "2.6.37",
"versionEndExcluding": "6.0"
}
]
}
]
}
],
"references": [
{
"url": "https://git.kernel.org/stable/c/7dce6b0ee7d78667d6c831ced957a08769973063"
},
{
"url": "https://git.kernel.org/stable/c/376e15487fec837301d888068a3fcc82efb6171a"
},
{
"url": "https://git.kernel.org/stable/c/9fd6170c5e2d0ccd027abe26f6f5ffc528e1bb27"
},
{
"url": "https://git.kernel.org/stable/c/d0aac7146e96bf39e79c65087d21dfa02ef8db38"
},
{
"url": "https://git.kernel.org/stable/c/19e3f69d19801940abc2ac37c169882769ed9770"
},
{
"url": "https://git.kernel.org/stable/c/dc02aaf950015850e7589696521c7fca767cea77"
},
{
"url": "https://git.kernel.org/stable/c/b1727def850904e4b8ba384043775672841663a1"
},
{
"url": "https://git.kernel.org/stable/c/e230a4455ac3e9b112f0367d1b8e255e141afae0"
}
],
"title": "staging: rtl8712: fix use after free bugs",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
}
}