In the Linux kernel, the following vulnerability has been resolved:
md: fix kmemleak of rdev->serial
If kobjectadd() is fail in bindrdevtoarray(), 'rdev->serial' will be alloc not be freed, and kmemleak occurs.
unreferenced object 0xffff88815a350000 (size 49152): comm "mdadm", pid 789, jiffies 4294716910 hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace (crc f773277a): [<0000000058b0a453>] kmemleakalloc+0x61/0xe0 [<00000000366adf14>] _kmalloclargenode+0x15e/0x270 [<000000002e82961b>] _kmallocnode.cold+0x11/0x7f [<00000000f206d60a>] kvmallocnode+0x74/0x150 [<0000000034bf3363>] rdevinitserial+0x67/0x170 [<0000000010e08fe9>] mddevcreateserialpool+0x62/0x220 [<00000000c3837bf0>] bindrdevtoarray+0x2af/0x630 [<0000000073c28560>] mdaddnewdisk+0x400/0x9f0 [<00000000770e30ff>] mdioctl+0x15bf/0x1c10 [<000000006cfab718>] blkdevioctl+0x191/0x3f0 [<0000000085086a11>] vfsioctl+0x22/0x60 [<0000000018b656fe>] _x64sysioctl+0xba/0xe0 [<00000000e54e675e>] dosyscall64+0x71/0x150 [<000000008b0ad622>] entrySYSCALL64afterhwframe+0x6c/0x74
[
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"284106189935724319433753740989669853495",
"24413305426528692305810318089325190336",
"204417741263565441519613545603092405606",
"226286270067252299676542083863621410788"
]
},
"deprecated": false,
"id": "CVE-2024-26900-1820e0b1",
"target": {
"file": "drivers/md/md.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6d32c832a88513f65c2c2c9c75954ee8b387adea",
"signature_type": "Line"
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"284106189935724319433753740989669853495",
"24413305426528692305810318089325190336",
"204417741263565441519613545603092405606",
"259952516702472061122787956857463268482"
]
},
"deprecated": false,
"id": "CVE-2024-26900-2966fa8e",
"target": {
"file": "drivers/md/md.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@beaf11969fd5cbe6f09cefaa34df1ce8578e8dd9",
"signature_type": "Line"
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"284106189935724319433753740989669853495",
"24413305426528692305810318089325190336",
"204417741263565441519613545603092405606",
"226286270067252299676542083863621410788"
]
},
"deprecated": false,
"id": "CVE-2024-26900-4ada04b4",
"target": {
"file": "drivers/md/md.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4c1021ce46fc2fb6115f7e79d353941e6dcad366",
"signature_type": "Line"
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"284106189935724319433753740989669853495",
"24413305426528692305810318089325190336",
"204417741263565441519613545603092405606",
"226286270067252299676542083863621410788"
]
},
"deprecated": false,
"id": "CVE-2024-26900-53313374",
"target": {
"file": "drivers/md/md.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6cf350658736681b9d6b0b6e58c5c76b235bb4c4",
"signature_type": "Line"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "190840584885662405804380424181089753134",
"length": 1866.0
},
"deprecated": false,
"id": "CVE-2024-26900-53dfb856",
"target": {
"function": "bind_rdev_to_array",
"file": "drivers/md/md.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f3a1787dc48213f6caea5ba7d47e0222e7fa34a9",
"signature_type": "Function"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "228686496793939271591040909912799396544",
"length": 1883.0
},
"deprecated": false,
"id": "CVE-2024-26900-56df427f",
"target": {
"function": "bind_rdev_to_array",
"file": "drivers/md/md.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4c1021ce46fc2fb6115f7e79d353941e6dcad366",
"signature_type": "Function"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "228686496793939271591040909912799396544",
"length": 1883.0
},
"deprecated": false,
"id": "CVE-2024-26900-69b8f1ca",
"target": {
"function": "bind_rdev_to_array",
"file": "drivers/md/md.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6cf350658736681b9d6b0b6e58c5c76b235bb4c4",
"signature_type": "Function"
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"284106189935724319433753740989669853495",
"24413305426528692305810318089325190336",
"204417741263565441519613545603092405606",
"259952516702472061122787956857463268482"
]
},
"deprecated": false,
"id": "CVE-2024-26900-822f0e6b",
"target": {
"file": "drivers/md/md.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f3a1787dc48213f6caea5ba7d47e0222e7fa34a9",
"signature_type": "Line"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "226217763775592351758844430662995457651",
"length": 1891.0
},
"deprecated": false,
"id": "CVE-2024-26900-a819fdb8",
"target": {
"function": "bind_rdev_to_array",
"file": "drivers/md/md.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@beaf11969fd5cbe6f09cefaa34df1ce8578e8dd9",
"signature_type": "Function"
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"284106189935724319433753740989669853495",
"24413305426528692305810318089325190336",
"204417741263565441519613545603092405606",
"226286270067252299676542083863621410788"
]
},
"deprecated": false,
"id": "CVE-2024-26900-ba304c6c",
"target": {
"file": "drivers/md/md.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9fd0198f7ef06ae0d6636fb0578560857dead995",
"signature_type": "Line"
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"284106189935724319433753740989669853495",
"24413305426528692305810318089325190336",
"204417741263565441519613545603092405606",
"259952516702472061122787956857463268482"
]
},
"deprecated": false,
"id": "CVE-2024-26900-cfba923d",
"target": {
"file": "drivers/md/md.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fb5b347efd1bda989846ffc74679d181222fb123",
"signature_type": "Line"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "226217763775592351758844430662995457651",
"length": 1891.0
},
"deprecated": false,
"id": "CVE-2024-26900-d2d3f411",
"target": {
"function": "bind_rdev_to_array",
"file": "drivers/md/md.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9fd0198f7ef06ae0d6636fb0578560857dead995",
"signature_type": "Function"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "216486895496863265458521333369446520990",
"length": 1960.0
},
"deprecated": false,
"id": "CVE-2024-26900-d3e016e3",
"target": {
"function": "bind_rdev_to_array",
"file": "drivers/md/md.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fb5b347efd1bda989846ffc74679d181222fb123",
"signature_type": "Function"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "228686496793939271591040909912799396544",
"length": 1883.0
},
"deprecated": false,
"id": "CVE-2024-26900-e25ed819",
"target": {
"function": "bind_rdev_to_array",
"file": "drivers/md/md.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6d32c832a88513f65c2c2c9c75954ee8b387adea",
"signature_type": "Function"
}
]