In the Linux kernel, the following vulnerability has been resolved:
smb3: fix for slab out of bounds on mount to ksmbd
With KASAN enabled, it is possible to get a slab out of bounds during mount to ksmbd due to missing check in parseserverinterfaces() (see below):
BUG: KASAN: slab-out-of-bounds in parseserverinterfaces+0x14ee/0x1880 [cifs] Read of size 4 at addr ffff8881433dba98 by task mount/9827
CPU: 5 UID: 0 PID: 9827 Comm: mount Tainted: G OE 6.16.0-rc2-kasan #2 PREEMPT(voluntary) Tainted: [O]=OOTMODULE, [E]=UNSIGNEDMODULE Hardware name: Dell Inc. Precision Tower 3620/0MWYPT, BIOS 2.13.1 06/14/2019 Call Trace: <TASK> dumpstacklvl+0x9f/0xf0 printreport+0xd1/0x670 _virtaddrvalid+0x22c/0x430 ? parseserverinterfaces+0x14ee/0x1880 [cifs] ? kasancompletemodereportinfo+0x2a/0x1f0 ? parseserverinterfaces+0x14ee/0x1880 [cifs] kasanreport+0xd6/0x110 parseserverinterfaces+0x14ee/0x1880 [cifs] _asanreportloadnnoabort+0x13/0x20 parseserverinterfaces+0x14ee/0x1880 [cifs] ? _pfxparseserverinterfaces+0x10/0x10 [cifs] ? tracehardirqson+0x51/0x60 SMB3requestinterfaces+0x1ad/0x3f0 [cifs] ? _pfxSMB3requestinterfaces+0x10/0x10 [cifs] ? SMB2tcon+0x23c/0x15d0 [cifs] smb3qfstcon+0x173/0x2b0 [cifs] ? _pfxsmb3qfstcon+0x10/0x10 [cifs] ? cifsgettcon+0x105d/0x2120 [cifs] ? dorawspinunlock+0x5d/0x200 ? cifsgettcon+0x105d/0x2120 [cifs] ? _pfxsmb3qfstcon+0x10/0x10 [cifs] cifsmountgettcon+0x369/0xb90 [cifs] ? dfscachefind+0xe7/0x150 [cifs] dfsmountshare+0x985/0x2970 [cifs] ? checkpath.constprop.0+0x28/0x50 ? savetrace+0x54/0x370 ? _pfxdfsmountshare+0x10/0x10 [cifs] ? _lockacquire+0xb82/0x2ba0 ? _kasancheckwrite+0x18/0x20 cifsmount+0xbc/0x9e0 [cifs] ? _pfxcifsmount+0x10/0x10 [cifs] ? dorawspinunlock+0x5d/0x200 ? cifssetupcifssb+0x29d/0x810 [cifs] cifssmb3do_mount+0x263/0x1990 [cifs]
[
{
"signature_type": "Function",
"digest": {
"function_hash": "22650692546152833474165924027740023958",
"length": 3935.0
},
"target": {
"file": "fs/smb/client/smb2ops.c",
"function": "parse_server_interfaces"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9bdb8e98a0073c73ab3e6c631ec78877ceb64565",
"id": "CVE-2025-38728-028ff9c3",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "185350849708315280194771942233171136482",
"length": 3897.0
},
"target": {
"file": "fs/smb/client/smb2ops.c",
"function": "parse_server_interfaces"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7d34ec36abb84fdfb6632a0f2cbda90379ae21fc",
"id": "CVE-2025-38728-0617aee2",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "185350849708315280194771942233171136482",
"length": 3897.0
},
"target": {
"file": "fs/smb/client/smb2ops.c",
"function": "parse_server_interfaces"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a0620e1525663edd8c4594f49fb75fe5be4724b0",
"id": "CVE-2025-38728-0f1c1313",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"72758368492350899640921227190393694831",
"78246591156106652315774345606342882346",
"51068633540200940466031666366160294408",
"263598136406164333942404006172559296956",
"60775761781692137599833508954330936708",
"23665230806177188613589478359989156272",
"20053153557127916988476488880982984185",
"38359614880266489284934559459081595252"
]
},
"target": {
"file": "fs/smb/client/smb2ops.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7d34ec36abb84fdfb6632a0f2cbda90379ae21fc",
"id": "CVE-2025-38728-1e276649",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"72758368492350899640921227190393694831",
"78246591156106652315774345606342882346",
"51068633540200940466031666366160294408",
"263598136406164333942404006172559296956",
"60775761781692137599833508954330936708",
"23665230806177188613589478359989156272",
"20053153557127916988476488880982984185",
"38359614880266489284934559459081595252"
]
},
"target": {
"file": "fs/smb/client/smb2ops.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a0620e1525663edd8c4594f49fb75fe5be4724b0",
"id": "CVE-2025-38728-43eae48d",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"72758368492350899640921227190393694831",
"78246591156106652315774345606342882346",
"51068633540200940466031666366160294408",
"263598136406164333942404006172559296956",
"60775761781692137599833508954330936708",
"23665230806177188613589478359989156272",
"107893684961444828712100006281992578424",
"5717554534189957149510359892756445371"
]
},
"target": {
"file": "fs/smb/client/smb2ops.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9bdb8e98a0073c73ab3e6c631ec78877ceb64565",
"id": "CVE-2025-38728-78981888",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "185350849708315280194771942233171136482",
"length": 3897.0
},
"target": {
"file": "fs/smb/client/smb2ops.c",
"function": "parse_server_interfaces"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f6eda5b0e8f8123564c5b34f5801d63243032eac",
"id": "CVE-2025-38728-88ef6163",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"72758368492350899640921227190393694831",
"78246591156106652315774345606342882346",
"51068633540200940466031666366160294408",
"263598136406164333942404006172559296956",
"60775761781692137599833508954330936708",
"23665230806177188613589478359989156272",
"20053153557127916988476488880982984185",
"38359614880266489284934559459081595252"
]
},
"target": {
"file": "fs/smb/client/smb2ops.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a542f93a123555d09c3ce8bc947f7b56ad8e6463",
"id": "CVE-2025-38728-93a2c8d9",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"72758368492350899640921227190393694831",
"78246591156106652315774345606342882346",
"51068633540200940466031666366160294408",
"263598136406164333942404006172559296956",
"60775761781692137599833508954330936708",
"23665230806177188613589478359989156272",
"20053153557127916988476488880982984185",
"38359614880266489284934559459081595252"
]
},
"target": {
"file": "fs/smb/client/smb2ops.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f6eda5b0e8f8123564c5b34f5801d63243032eac",
"id": "CVE-2025-38728-9fb2eaaa",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "185350849708315280194771942233171136482",
"length": 3897.0
},
"target": {
"file": "fs/smb/client/smb2ops.c",
"function": "parse_server_interfaces"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a542f93a123555d09c3ce8bc947f7b56ad8e6463",
"id": "CVE-2025-38728-cf9689f7",
"deprecated": false,
"signature_version": "v1"
}
]