CVE-2022-47938
published 2022-12-23CVE-2022-47938: An issue was discovered in ksmbd in the Linux kernel 5.15 through 5.19 before 5.19.2. fs/ksmbd/smb2misc.c has an out-of-bounds read and OOPS for…
PriorityP349medium6.5CVSS 3.1
AVNACLPRLUINSUCNINAH
EPSS
58.46%
99.0th percentile
An issue was discovered in ksmbd in the Linux kernel 5.15 through 5.19 before 5.19.2. fs/ksmbd/smb2misc.c has an out-of-bounds read and OOPS for SMB2_TREE_CONNECT.
Affected
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 5.19.6-1 (bookworm) | linux 5.19.6-1 (bookworm) |
| linux | linux_kernel | >= 0 < 5.19.6-1 | 5.19.6-1 |
| linux | linux_kernel | >= 0 < 5.19.6-1 | 5.19.6-1 |
| linux | linux_kernel | >= 0 < 5.19.6-1 | 5.19.6-1 |
| linux | linux_kernel | >= 5.15 < 5.19.2 | 5.19.2 |
| msrc | cbl2_kernel_5.15.86.1-1_on_cbl_mariner_2.0 | — | — |
Detection & IOCsextracted from sources · hover to see the quote
- →Target the SMB2_TREE_CONNECT command handler in the ksmbd kernel module; the vulnerability is triggered by malformed/oversized user-supplied data in SMB2_TREE_CONNECT requests that causes an out-of-bounds read in fs/ksmbd/smb2misc.c ↗
- →Authentication is required to exploit this vulnerability; monitor for authenticated SMB sessions followed by anomalous SMB2_TREE_CONNECT requests that trigger kernel OOPS/crash (DoS) on Linux hosts running ksmbd (kernel 5.15–5.19 before 5.19.2) ↗
- →Inspect SMB2_TREE_CONNECT packets for data that extends past the end of the allocated buffer; a kernel OOPS on the target system is a strong indicator of exploitation ↗
- ·Only Linux kernels with the ksmbd module enabled (in-kernel SMB server) versions 5.15 through 5.19 before 5.19.2 are affected; standard CIFS client-side configurations are not impacted ↗
- ·Red Hat Enterprise Linux 6, 8, and 9 (kernel and kernel-rt) are confirmed Not Affected; RHEL 7 is out of support scope — detection efforts should focus on upstream/vanilla kernels and distros shipping ksmbd in the affected range ↗
- ·Exploitation requires prior authentication to the SMB service; unauthenticated attack surface is not present for this CVE ↗
CVSS provenance
nvdv3.16.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv6.5MEDIUM
vendor_debian6.5MEDIUM
vendor_msrc6.5MEDIUM
vendor_redhat6.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
kernel: improper input validation in handling of SMB2_TREE_CONNECT command can result in out-of-bounds read which could result in DoS
vendor_redhat·2022-12-22·CVSS 6.5
CVE-2022-47938 [MEDIUM] CWE-125 kernel: improper input validation in handling of SMB2_TREE_CONNECT command can result in out-of-bounds read which could result in DoS
kernel: improper input validation in handling of SMB2_TREE_CONNECT command can result in out-of-bounds read which could result in DoS
An issue was discovered in ksmbd in the Linux kernel 5.15 through 5.19 before 5.19.2. fs/ksmbd/smb2misc.c has an out-of-bounds read and OOPS for SMB2_TREE_CONNECT.
A denial-of-service flaw was found in the Linux Kernel while handling SMB2_TREE_CONNECT commands in CIFS Filesystem. The issue results from the lack of proper validation of user-supplied data, which can result in a read past the end of an allocated buffer. An attacker can leverage this vulnerability to create a denial-of-service condition in the system.
Statement: See https://access.redhat.com/solutions/6991749 for more information.
Mitigation: Mitigation for this issue is either not available
Microsoft
An issue was discovered in ksmbd in the Linux kernel 5.15 through 5.19 before 5.19.2. fs/ksmbd/smb2misc.c has an out-of-bounds read and OOPS for SMB2_TREE_CONNECT.
vendor_msrc·2022-12-13·CVSS 6.5
CVE-2022-47938 [MEDIUM] CWE-125 An issue was discovered in ksmbd in the Linux kernel 5.15 through 5.19 before 5.19.2. fs/ksmbd/smb2misc.c has an out-of-bounds read and OOPS for SMB2_TREE_CONNECT.
An issue was discovered in ksmbd in the Linux kernel 5.15 through 5.19 before 5.19.2. fs/ksmbd/smb2misc.c has an out-of-bounds read and OOPS for SMB2_TREE_CONNECT.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Marin
Debian
CVE-2022-47938: linux - An issue was discovered in ksmbd in the Linux kernel 5.15 through 5.19 before 5....
vendor_debian·2022·CVSS 6.5
CVE-2022-47938 [MEDIUM] CVE-2022-47938: linux - An issue was discovered in ksmbd in the Linux kernel 5.15 through 5.19 before 5....
An issue was discovered in ksmbd in the Linux kernel 5.15 through 5.19 before 5.19.2. fs/ksmbd/smb2misc.c has an out-of-bounds read and OOPS for SMB2_TREE_CONNECT.
Scope: local
bookworm: resolved (fixed in 5.19.6-1)
bullseye: resolved
forky: resolved (fixed in 5.19.6-1)
sid: resolved (fixed in 5.19.6-1)
trixie: resolved (fixed in 5.19.6-1)
OSV
CVE-2022-47938: An issue was discovered in ksmbd in the Linux kernel 5
osv·2022-12-23·CVSS 6.5
CVE-2022-47938 [MEDIUM] CVE-2022-47938: An issue was discovered in ksmbd in the Linux kernel 5
An issue was discovered in ksmbd in the Linux kernel 5.15 through 5.19 before 5.19.2. fs/ksmbd/smb2misc.c has an out-of-bounds read and OOPS for SMB2_TREE_CONNECT.
GHSA
GHSA-jcw4-9ccq-g3rh: An issue was discovered in ksmbd in the Linux kernel before 5
ghsa_unreviewed·2022-12-23
CVE-2022-47938 [MEDIUM] CWE-125 GHSA-jcw4-9ccq-g3rh: An issue was discovered in ksmbd in the Linux kernel before 5
An issue was discovered in ksmbd in the Linux kernel before 5.19.2. fs/ksmbd/smb2misc.c has an out-of-bounds read and OOPS for SMB2_TREE_CONNNECT.
No detection rules found.
No public exploits indexed.
http://www.openwall.com/lists/oss-security/2022/12/23/10https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.19.2https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=824d4f64c20093275f72fc8101394d75ff6a249ehttps://github.com/torvalds/linux/commit/824d4f64c20093275f72fc8101394d75ff6a249ehttps://www.zerodayinitiative.com/advisories/ZDI-22-1689/http://www.openwall.com/lists/oss-security/2022/12/23/10https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.19.2https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=824d4f64c20093275f72fc8101394d75ff6a249ehttps://github.com/torvalds/linux/commit/824d4f64c20093275f72fc8101394d75ff6a249ehttps://www.zerodayinitiative.com/advisories/ZDI-22-1689/
2022-12-23
Published