Описание
In the Linux kernel, the following vulnerability has been resolved:
smb: client: reject short READ responses in CIFSSMBRead()
CIFSSMBRead() reads DataLengthHigh, DataLength and DataOffset out of
the READ_RSP returned by the server without first checking that a
whole READ_RSP was actually received. The length of the response is
recorded in rsp_iov.iov_len, but nothing constrains it to be at least
read_rsp_size before those fields are dereferenced.
A malicious or compromised SMB1 server can return a response shorter
than the READ_RSP header, so that parsing the header itself reads past
the end of the receive buffer. SMB1 is not negotiated by default;
reaching this code requires an explicit vers=1.0 mount.
Reject the response unless it is at least read_rsp_size bytes long.
A flaw was found in the Linux kernel's SMB (Server Message Block) client. When communicating with a malicious or compromised server, the client fails to verify that an incoming read response meets the expected minimum header size before accessing header fields. A malicious server can send a truncated response packet, triggering an out-of-bounds memory read during header parsing. This flaw primarily leads to a system crash, resulting in a Denial of Service (DoS), or potential information disclosure.
Отчет
A moderate out-of-bounds read flaw was found in the Linux kernel CIFS/SMB client in CIFSSMBRead(). The client reads the DataLengthHigh, DataLength and DataOffset fields of an SMB1 READ response without first verifying that the response is at least as large as the READ_RSP header. A malicious or compromised SMB server can return a truncated response, causing the client to read past the end of the receive buffer, which can crash the kernel (denial of service) or potentially disclose kernel memory. This flaw affects the kernel and kernel-rt packages in Red Hat Enterprise Linux 8, 9 and 10, the kernel packages in Red Hat In-Vehicle OS, and the RHEL CoreOS images shipped with OpenShift Container Platform. Red Hat Enterprise Linux 6 and 7 are not affected because the vulnerable code is not present in those releases. Exploitation requires explicit configuration: SMB1 is not negotiated by default, so the vulnerable path is reached only when a client mounts a share with the legacy vers=1.0 option against a malicious or compromised server. Because of the moderate severity and the non-default configuration needed to reach the vulnerable code, the fix is currently deferred for the affected products and will be addressed in a future update; until then, the residual risk is a kernel crash or potential information disclosure on systems that use vers=1.0 CIFS mounts against untrusted servers. Red Hat rated this flaw Moderate severity with a CVSS 3.1 base score of 5.5 (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).
Меры по смягчению последствий
The vulnerable code path is reachable only through the legacy SMB1 protocol, which the kernel CIFS client does not negotiate by default. Avoid mounting CIFS shares with the vers=1.0 option, including entries in /etc/fstab or autofs maps; rely on the default protocol negotiation or explicitly request a newer dialect such as vers=2.1 or vers=3.0, and remount any existing SMB1 mounts using a newer dialect. Additionally, restricting CIFS mounts to trusted, non-compromised SMB servers reduces exposure to a malicious server returning truncated responses.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Fix deferred | ||
| Red Hat Enterprise Linux 6 | kernel | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel | Fix deferred | ||
| Red Hat Enterprise Linux 8 | kernel-rt | Fix deferred | ||
| Red Hat Enterprise Linux 9 | kernel | Fix deferred | ||
| Red Hat Enterprise Linux 9 | kernel-rt | Fix deferred | ||
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-8 | Fix deferred | ||
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-9 | Fix deferred |
Показывать по
Дополнительная информация
Статус:
EPSS
5.5 Medium
CVSS3
Связанные уязвимости
In the Linux kernel, the following vulnerability has been resolved: smb: client: reject short READ responses in CIFSSMBRead() CIFSSMBRead() reads DataLengthHigh, DataLength and DataOffset out of the READ_RSP returned by the server without first checking that a whole READ_RSP was actually received. The length of the response is recorded in rsp_iov.iov_len, but nothing constrains it to be at least read_rsp_size before those fields are dereferenced. A malicious or compromised SMB1 server can return a response shorter than the READ_RSP header, so that parsing the header itself reads past the end of the receive buffer. SMB1 is not negotiated by default; reaching this code requires an explicit vers=1.0 mount. Reject the response unless it is at least read_rsp_size bytes long.
In the Linux kernel, the following vulnerability has been resolved: smb: client: reject short READ responses in CIFSSMBRead() CIFSSMBRead() reads DataLengthHigh, DataLength and DataOffset out of the READ_RSP returned by the server without first checking that a whole READ_RSP was actually received. The length of the response is recorded in rsp_iov.iov_len, but nothing constrains it to be at least read_rsp_size before those fields are dereferenced. A malicious or compromised SMB1 server can return a response shorter than the READ_RSP header, so that parsing the header itself reads past the end of the receive buffer. SMB1 is not negotiated by default; reaching this code requires an explicit vers=1.0 mount. Reject the response unless it is at least read_rsp_size bytes long.
In the Linux kernel, the following vulnerability has been resolved: s ...
In the Linux kernel, the following vulnerability has been resolved: smb: client: reject short READ responses in CIFSSMBRead() CIFSSMBRead() reads DataLengthHigh, DataLength and DataOffset out of the READ_RSP returned by the server without first checking that a whole READ_RSP was actually received. The length of the response is recorded in rsp_iov.iov_len, but nothing constrains it to be at least read_rsp_size before those fields are dereferenced. A malicious or compromised SMB1 server can return a response shorter than the READ_RSP header, so that parsing the header itself reads past the end of the receive buffer. SMB1 is not negotiated by default; reaching this code requires an explicit vers=1.0 mount. Reject the response unless it is at least read_rsp_size bytes long.
EPSS
5.5 Medium
CVSS3