REDHAT-BUG-2253611: Medium severity linux_kernel vulnerability

Published Dec 8, 2023
·
Updated

An Out-Of-Bounds Read vulnerability in smbCalcSize in fs/smb/client/netmisc.c in the Linux Kernel. This flaw could allow a local attacker to crash the system or leak internal kernel information.

Refer; https://bugzilla.kernel.org/showbug.cgi?id=218218

[1] Retrieve WordCount and add offset2 to the data part of smb [2] Retrieve a 16-byte value from the calculated pointer

c unsigned int smbCalcSize(void buf) { struct smbhdr ptr = buf; return (sizeof(struct smbhdr) + (2 ptr->WordCount) + 2 / size of the bcc field / + getbcc(ptr)); } ... static inline u16 getbcc(struct smbhdr hdr) { le16 bcptr = (le16 )BCC(hdr);

return getunalignedle16(bcptr);//[2] } ... static inline void BCC(struct smbhdr smb) { return (void )smb + sizeof(smb) + 2 smb->WordCount; //[1] }

[2] cifsdemultiplexthread → standardreceive3 → cifshandlestandard → checkSMB → smbCalcSize

c int checkSMB(char buf, unsigned int totalread, struct TCPServerInfo server) { struct smbhdr smb = (struct smbhdr )buf; u32 rfclen = be32tocpu(smb->smbbuflength); u32 clclen; / calculated length / cifsdbg(FYI, "checkSMB Length: 0x%x, smbbuflength: 0x%x\n", totalread, rfclen);

/ is this frame too small to even get to a BCC? / if (totalread < 2 + sizeof(struct smbhdr)) { ... }

/ otherwise, there is enough to get to the BCC / if (checksmbhdr(smb)) return -EIO; clclen = smbCalcSize(smb);

Affected Software

1 affected component
linux_kernel

Event History

Dec 8, 2023
Data Sourced
via Red Hat·07:47 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2253611?

The severity of REDHAT-BUG-2253611 is considered high due to its potential to crash the system or reveal sensitive kernel information.

2

How does REDHAT-BUG-2253611 affect user systems?

REDHAT-BUG-2253611 can be exploited by local attackers to cause system crashes or leak internal kernel data.

3

How do I fix REDHAT-BUG-2253611?

To fix REDHAT-BUG-2253611, users should apply the latest updates provided by their Linux distribution that address this vulnerability.

4

What versions of the Linux Kernel are affected by REDHAT-BUG-2253611?

REDHAT-BUG-2253611 affects various versions of the Linux Kernel that include the vulnerable function smbCalcSize.

5

Is there a workaround for REDHAT-BUG-2253611?

There is no official workaround for REDHAT-BUG-2253611; the best mitigation is to update to a patched version of the Linux Kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203