In the Linux kernel, the following vulnerability has been resolved:
ptp: Ensure info->enable callback is always set
The ioctl and sysfs handlers unconditionally call the ->enable callback. Not all drivers implement that callback, leading to NULL dereferences. Example of affected drivers: ptps390.c, ptpvclock.c and ptp_mock.c.
Instead use a dummy callback if no better was specified by the driver.
[
{
"id": "CVE-2025-21814-1ea293dd",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"160455354341605719598049603194375583812",
"312942419107365179317117339646959382507",
"207702109074391451034230042827095860490",
"48885197113938035307089784091702922342",
"66369272378086702944873319953361884471",
"220529032533861375023292518531899738620"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9df3a9284f39bfd51a9f72a6a165c79e2aa5066b",
"target": {
"file": "drivers/ptp/ptp_clock.c"
}
},
{
"id": "CVE-2025-21814-41a66d55",
"signature_version": "v1",
"digest": {
"length": 2892.0,
"function_hash": "326915113915408249986360176853075941512"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1334c64a5d1de6666e0c9f984db6745083df1eb4",
"target": {
"file": "drivers/ptp/ptp_clock.c",
"function": "ptp_clock_register"
}
},
{
"id": "CVE-2025-21814-4922af2b",
"signature_version": "v1",
"digest": {
"length": 3929.0,
"function_hash": "338865211118395459992455115420559184926"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8441aea46445252df5d2eed6deb6d5246fc24002",
"target": {
"file": "drivers/ptp/ptp_clock.c",
"function": "ptp_clock_register"
}
},
{
"id": "CVE-2025-21814-5152895b",
"signature_version": "v1",
"digest": {
"length": 3354.0,
"function_hash": "316916541873103465267797071361061187091"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@81846070cba17125a866e8023c01d3465b153339",
"target": {
"file": "drivers/ptp/ptp_clock.c",
"function": "ptp_clock_register"
}
},
{
"id": "CVE-2025-21814-547a6472",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"253414601201870708143624506772089995820",
"286725585285620430272312656007000995032",
"207702109074391451034230042827095860490",
"289341197529164104465734455478963469159",
"91369271162681078830056106911703794475",
"331310201988874736734025749868436129164"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8441aea46445252df5d2eed6deb6d5246fc24002",
"target": {
"file": "drivers/ptp/ptp_clock.c"
}
},
{
"id": "CVE-2025-21814-6b508242",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"253414601201870708143624506772089995820",
"286725585285620430272312656007000995032",
"207702109074391451034230042827095860490",
"289341197529164104465734455478963469159",
"91369271162681078830056106911703794475",
"331310201988874736734025749868436129164"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@81846070cba17125a866e8023c01d3465b153339",
"target": {
"file": "drivers/ptp/ptp_clock.c"
}
},
{
"id": "CVE-2025-21814-70e42ece",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"253414601201870708143624506772089995820",
"286725585285620430272312656007000995032",
"207702109074391451034230042827095860490",
"289341197529164104465734455478963469159",
"91369271162681078830056106911703794475",
"331294856164119941313824223166998614622"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fd53aa40e65f518453115b6f56183b0c201db26b",
"target": {
"file": "drivers/ptp/ptp_clock.c"
}
},
{
"id": "CVE-2025-21814-8a0da49e",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"160455354341605719598049603194375583812",
"312942419107365179317117339646959382507",
"207702109074391451034230042827095860490",
"87650644761763474995110852060569934180",
"304291418602088811476026422047472669191",
"220529032533861375023292518531899738620"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1334c64a5d1de6666e0c9f984db6745083df1eb4",
"target": {
"file": "drivers/ptp/ptp_clock.c"
}
},
{
"id": "CVE-2025-21814-c6f52de0",
"signature_version": "v1",
"digest": {
"length": 2226.0,
"function_hash": "211081460744339403980548656538470684175"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9df3a9284f39bfd51a9f72a6a165c79e2aa5066b",
"target": {
"file": "drivers/ptp/ptp_clock.c",
"function": "ptp_clock_register"
}
},
{
"id": "CVE-2025-21814-c9c5d91d",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"160455354341605719598049603194375583812",
"312942419107365179317117339646959382507",
"207702109074391451034230042827095860490",
"48885197113938035307089784091702922342",
"66369272378086702944873319953361884471",
"220529032533861375023292518531899738620"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fdc1e72487781dd7705bcbe30878bee7d5d1f3e8",
"target": {
"file": "drivers/ptp/ptp_clock.c"
}
},
{
"id": "CVE-2025-21814-dae409d1",
"signature_version": "v1",
"digest": {
"length": 3929.0,
"function_hash": "338865211118395459992455115420559184926"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fd53aa40e65f518453115b6f56183b0c201db26b",
"target": {
"file": "drivers/ptp/ptp_clock.c",
"function": "ptp_clock_register"
}
},
{
"id": "CVE-2025-21814-e9761a40",
"signature_version": "v1",
"digest": {
"length": 2226.0,
"function_hash": "211081460744339403980548656538470684175"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fdc1e72487781dd7705bcbe30878bee7d5d1f3e8",
"target": {
"file": "drivers/ptp/ptp_clock.c",
"function": "ptp_clock_register"
}
}
]