Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

scsi: target: Fix WRITE_SAME No Data Buffer crash

CVSS 3.1 7.5 HIGHCheck source for fixed versionsKEV status unknown

cve-program · CVE-2022-21546

Published

In the Linux kernel, the following vulnerability has been resolved: scsi: target: Fix WRITE_SAME No Data Buffer crash In newer version of the SBC specs, we have a NDOB bit that indicates there is no data buffer that gets written out. If this bit is set using commands like "sg_write_same --ndob" we will crash in target_core_iblock/file's execute_write_same handlers when we go to access the se_cmd->t_data_sg because its NULL. This patch adds a check for the NDOB bit in the common WRITE SAME code because we don't support it. And, it adds a check for zero SG elements in each handler in case the initiator tries to send a normal WRITE SAME with no data buffer.

Read the publisher's advisory

Affected versions, risk and source history

cve-program · CVE-2022-21546

Published

Linux

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/target/target_core_file.c",
                        "drivers/target/target_core_iblock.c",
                        "drivers/target/target_core_sbc.c"
                    ],
                    "versions": [
                        {
                            "version": "f6970ad31d42fceb38b5595cbad093a4d0bfcc43",
                            "lessThan": "54e57be2573cf0b8bf650375fd8752987b6c3d3b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "f6970ad31d42fceb38b5595cbad093a4d0bfcc43",
                            "lessThan": "d8e6a27e9238dd294d6f2f401655f300dca20899",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "f6970ad31d42fceb38b5595cbad093a4d0bfcc43",
                            "lessThan": "4226622647e3e5ac06d3ebc1605b917446157510",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "f6970ad31d42fceb38b5595cbad093a4d0bfcc43",
                            "lessThan": "ccd3f449052449a917a3e577d8ba0368f43b8f29",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                }

Linux

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/target/target_core_file.c",
                        "drivers/target/target_core_iblock.c",
                        "drivers/target/target_core_sbc.c"
                    ],
                    "versions": [
                        {
                            "version": "3.8",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "3.8",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.294",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.238",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.182",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.19",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }

Original source record · Cite this exact observation · Complete original publisher JSON

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 23 Nov 06:19 UTC · 274 of 275 readable · 270 fully read · documentation 469/469 current