Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-50195

published high CVSS 3.1 · 7.1

posix-clock: Fix missing timespec64 check in pc_clock_settime()

Published
08 Nov 2024, 05:54:10 UTC
Updated
05 Aug 2026, 11:42:26 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux0606f422b453f76c31ab2b1bd52943ff06a2dcf2 to < 29f085345cde24566efb751f39e5d367c381c584 · 0606f422b453f76c31ab2b1bd52943ff06a2dcf2 to < e0c966bd3e31911b57ef76cec4c5796ebd88e512 · 0606f422b453f76c31ab2b1bd52943ff06a2dcf2 to < 673a1c5a2998acbd429d6286e6cad10f17f4f073 · 0606f422b453f76c31ab2b1bd52943ff06a2dcf2 to < c8789fbe2bbf75845e45302cba6ffa44e1884d01 · 0606f422b453f76c31ab2b1bd52943ff06a2dcf2 to < 27abbde44b6e71ee3891de13e1a228aa7ce95bfe · 0606f422b453f76c31ab2b1bd52943ff06a2dcf2 to < a3f169e398215e71361774d13bf91a0101283ac2 · 0606f422b453f76c31ab2b1bd52943ff06a2dcf2 to < 1ff7247101af723731ea42ed565d54fb8f341264 · 0606f422b453f76c31ab2b1bd52943ff06a2dcf2 to < d8794ac20a299b647ba9958f6d657051fc51a540 · Other versions: unaffected Affected Not stated Linux
Linux — Linux2.6.39 (affected) · 0 to < 2.6.39 (unaffected · semver) · 4.19.323 through 4.19.* (unaffected · semver) · 5.4.285 through 5.4.* (unaffected · semver) · 5.10.228 through 5.10.* (unaffected · semver) · 5.15.169 through 5.15.* (unaffected · semver) · 6.1.114 through 6.1.* (unaffected · semver) · 6.6.58 through 6.6.* (unaffected · semver) · 6.11.5 through 6.11.* (unaffected · semver) · 6.12 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Pending Fix Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2025-077 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.15-2025-060 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.4-2025-090 Fixed Not stated Amazon Linux assessment
AlmaLinux 9 kernel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
Debian bullseye linux Advisory build 5.10.234-1 DLA-4075-1
Show 99 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2023 Release evaluationALAS2023-2025-794 Fixed Not stated Amazon Linux assessment
Oracle Linux 7 kernel-uekaarch64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
AlmaLinux 9 kernel-64k Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-uki-virt Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-devel-matched Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-doc Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-headers Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-debug Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-debug-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-debug-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-debug-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-debug-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-debug-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-debug Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-debug-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-debug-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-debug-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-debug-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-debug-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-tools Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-tools-libs Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-tools-libs-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-uki-virt Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-uki-virt-addons Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump-devel-matched Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 libperf Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 perf Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 python3-perf Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 rtla Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 rv Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
Debian bullseye linux-6.1 Advisory build 6.1.119-1~deb11u1 DLA-4008-1
Oracle Linux 7 kernel-uekx86_64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-containerx86_64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-container-debugx86_64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-debugaarch64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-debugx86_64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-debug-develaarch64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-debug-develx86_64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-develaarch64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-develx86_64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-docaarch64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-docx86_64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-toolsaarch64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-toolsx86_64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-tools-libsaarch64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 perfaarch64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 python-perfaarch64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 8 bpftoolaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 bpftoolx86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uekaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uekaarch64 Advisory build 0:5.4.17-2136.338.4.1.el8uek ELSA-2024-12884
Oracle Linux 8 kernel-uekx86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uekx86_64 Advisory build 0:5.4.17-2136.338.4.1.el8uek ELSA-2024-12884
Oracle Linux 8 kernel-uek-containeraarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: posix-clock: Fix missing timespec64 check in pc_clock_settime() As Andrew pointed out, it will make sense that the PTP core checked timespec64 struct's tv_sec and tv_nsec range before calling ptp->info->settime64(). As the man manual of clock_settime() said, if tp.tv_sec is negative or tp.tv_nsec is outside the range [0..999,999,999], it should return EINVAL, which include dynamic clocks which handles PTP clock, and the condition is consistent with timespec64_valid(). As Thomas suggested, timespec64_valid() only check the timespec is valid, but not ensure that the time is in a valid range, so check it ahead using timespec64_valid_strict() in pc_clock_settime() and return -EINVAL if not valid. There are some drivers that use tp->tv_sec and tp->tv_nsec directly to write registers without validity checks and assume that the higher layer has checked it, which is dangerous and will benefit from this, such as hclge_ptp_settime(), igb_ptp_settime_i210(), _rcar_gen4_ptp_settime(), and some drivers can remove the checks of itself.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

96

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.1 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Scenarios
en: AV:L - The only entry point is the local `clock_settime()`/`clock_settime32()` syscall with a dynamic CLOCKFD clockid derived from an open file descriptor on a `/dev/ptpN` character device. There is no network, adjacent, or remote-peer path into `pc_clock_settime()`. AC:L - A single syscall with e.g. `tv_nsec = 1000000000` or `tv_sec = -1` deterministically drives the unvalidated value into the driver callback — no race, no timing window, no memory-layout or victim-state dependency, and it can be repeated at will. PR:L - No capability check exists anywhere on the path; the sole gate is `FMODE_WRITE` on a PTP character device, which is routinely granted to non-root PTP/TSN daemons (linuxptp running with dropped privileges), containers, and appliance workloads in telecom, automotive and cloud deployments. An ordinary unprivileged user holding such a descriptor fully controls the trigger. UI:N - The attacker performs the whole sequence on a descriptor they opened themselves with one syscall. No mount, file open, or other action by another user is required. S:U - The corrupted state is the kernel's own PTP/posix-clock objects and the NIC's PHC managed by the same kernel security authority. No VM, IOMMU, or sandbox boundary is crossed. C:N - The defect is a missing input-validation check on a value flowing inward to hardware registers and time arithmetic; nothing is read out of bounds, no freed object is reused, and no kernel memory is copied back to userspace, so no read primitive exists. I:H - The attacker gains full, arbitrary control over the value programmed into the PTP hardware clock — the authoritative time base for all hardware timestamping on the interface, for PTP/gPTP synchronization of downstream nodes, and for TSN taprio/ETF gate schedules — and drivers such as `hclge_ptp_settime()`, `igb_ptp_settime_i210()` and `_rcar_gen4_ptp_settime()` commit it to registers with no checks of their own. Malicious modification of that specific state is a direct, serious integrity consequence for the impacted component, and it also drives undefined arithmetic (`timespec64_to_ns()` overflow, `timecounter_init()`, `do_div()` in `vsc9959_new_base_time()`) in code that assumed a validated input. A:H - Programming an out-of-range or negative time into the PHC produces a total, persistent loss of hardware timestamping, PTP synchronization and time-aware-shaper transmission on that interface — TSN gate schedules recomputed from the poisoned base never open, and the condition can be re-triggered at will so the service cannot recover. The unvalidated value additionally reaches out-of-spec hardware register writes and overflowing kernel time arithmetic on paths that assume validated input.

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 5.5 medium CISA-ADP · adp CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 0606f422b453f76c31ab2b1bd52943ff06a2dcf2 to < 29f085345cde24566efb751f39e5d367c381c584 (affected · git)0606f422b453f76c31ab2b1bd52943ff06a2dcf2 to < e0c966bd3e31911b57ef76cec4c5796ebd88e512 (affected · git)0606f422b453f76c31ab2b1bd52943ff06a2dcf2 to < 673a1c5a2998acbd429d6286e6cad10f17f4f073 (affected · git)0606f422b453f76c31ab2b1bd52943ff06a2dcf2 to < c8789fbe2bbf75845e45302cba6ffa44e1884d01 (affected · git)0606f422b453f76c31ab2b1bd52943ff06a2dcf2 to < 27abbde44b6e71ee3891de13e1a228aa7ce95bfe (affected · git)0606f422b453f76c31ab2b1bd52943ff06a2dcf2 to < a3f169e398215e71361774d13bf91a0101283ac2 (affected · git)0606f422b453f76c31ab2b1bd52943ff06a2dcf2 to < 1ff7247101af723731ea42ed565d54fb8f341264 (affected · git)0606f422b453f76c31ab2b1bd52943ff06a2dcf2 to < d8794ac20a299b647ba9958f6d657051fc51a540 (affected · git)Default: unaffected Linux · cna
Linux Linux 2.6.39 (affected)0 to < 2.6.39 (unaffected · semver)4.19.323 through 4.19.* (unaffected · semver)5.4.285 through 5.4.* (unaffected · semver)5.10.228 through 5.10.* (unaffected · semver)5.15.169 through 5.15.* (unaffected · semver)6.1.114 through 6.1.* (unaffected · semver)6.6.58 through 6.6.* (unaffected · semver)6.11.5 through 6.11.* (unaffected · semver)6.12 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

1
  • CWE-754 CWE-754 Improper Check for Unusual or Exceptional Conditions (CISA-ADP · adp)

References

10

Provider assertions

3

Linux · cna

posix-clock: Fix missing timespec64 check in pc_clock_settime()

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
e013cdad11ea8a5dcd9e9c2406bab192a765fb81ddfe5f0c48d7d703a137d6e1
Ingested
23 Sep 2026, 08:29:52 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected