Update nVidia drivers to their latest versions which fix frequent kernel panics reported by some users. PR: 2253460a5b12057c
Port details
x11/nvidia-driver 595.112.07
NVIDIA graphics driver userland
Port info
- Maintainer
- x11@FreeBSD.org
- Packages
- latest: nvidia-driver 595.104.02, xlibre-nvidia-driver 595.104.02, update to 595.112.07 not built yet
- Upstream
- Higher version available: 615.78.08
- Last update
- to 595.112.07 · 1283580731
- Quarterly
- 2026Q4: nvidia-driver 595.104.02, xlibre-nvidia-driver 595.104.02
- WWW
- https://www.nvidia.com/object/unix.html
- Links
- cgit · VuXML · Report wrong data
Install
- Package
# pkg install nvidia-driver# pkg install xlibre-nvidia-driverinstalls nvidia-driver 595.104.02, xlibre-nvidia-driver 595.104.02 fromlatest; fromquarterly(2026Q4) nvidia-driver 595.104.02, xlibre-nvidia-driver 595.104.02- Port
# cd /usr/ports/x11/nvidia-driver && make install clean# make -C /usr/ports/x11/nvidia-driver config # change options first
- Size
- 88 MiB download · 318 MiB installed
- Depends on
- graphics/egl-wayland 1.1.24, graphics/egl-wayland2 1.0.2, graphics/egl-x11 1.0.6, graphics/libglvnd 1.7.0, x11-servers/xorg-server 21.1.25,1, x11/libX11 1.8.14,1, x11/libXext 1.3.7,1, x11/nvidia-kmod 595.104.02.1501000
- License
- NVIDIA
- Options
- 1 of 1 on in the package: DOCS
- Note
- Size, dependencies, options and messages are those of nvidia-driver.
Packages by version and architecture
latest
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 16 | 595.104.02 | ✗ | – |
| FreeBSD 15 | 595.104.02 | ✗ | – |
| FreeBSD 14 | 595.104.02 | ✗ | ✗ |
quarterly (2026Q4)
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 15 | 595.104.02 | ✗ | – |
| FreeBSD 14 | 595.104.02 | ✗ | ✗ |
version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.
Unaddressed and VuXML only (0)
No unaddressed CVE and nothing reported by
pkg audit for the packaged version 595.104.02.Fixed (6)
Show 6 fixed
VuXML entries whose affected range the packaged version has left.
CVE-2017-0309, CVE-2017-0310, CVE-2017-0311, CVE-2017-0318, CVE-2017-0321
NVIDIA UNIX driver -- ARGB cursor buffer overflow in "NoScanout" modeentered 2013-04-08
NVIDIA UNIX driver -- access to arbitrary system memoryentered 2012-05-10
NVIDIA UNIX driver -- arbitrary root code execution vulnerabilityentered 2006-10-16
Problem reports (11) · open in Bugzilla, most recently changed first
| PR | Summary | Status | Changed |
|---|---|---|---|
| 286313 | maintainer-feedback? x11/nvidia-driver: Doesn't support the GL_OES_EGL_image GL extension | New | 2026-09-06 |
| 298063 | maintainer-feedback? x11/nvidia-driver since 595.99.02 update cannot return to terminal from x | New | 2026-09-04 |
| 216050 | needs-qa maintainer-feedback? x11/nvidia-driver: kernel module fails on vt() to load: link_elf_obj: symbol sc_get_softc undefined | Open | 2026-08-02 |
| 277365 | maintainer-feedback? x11/nvidia-driver: Allow building without syscons(4) support | New | 2026-08-02 |
| 277364 | maintainer-feedback? x11/nvidia-driver: kernel panic: "NVRM: rm_init_rm() failed" after update to 550.54.14 | New | 2026-02-21 |
Show all 11
| PR | Summary | Status | Changed |
|---|---|---|---|
| 212638 | needs-qa maintainer-feedback? emulators/virtualbox-ose-kmod & x11/nvidia-driver no longer build with NO_MODULES | Open | 2026-01-06 |
| 287894 | maintainer-feedback? x11/nvidia-driver: panic on exit from Xorg | New | 2025-08-09 |
| 277827 | maintainer-feedback? x11/nvidia-driver: NVidia driver causes kernel crash during boot when it is loaded from /boot/loader.conf | New | 2025-07-25 |
| 284640 | maintainer-feedback? x11/nvidia-driver: 570.86.16.1500031 relics on WQHD screen | New | 2025-07-25 |
| 282308 | maintainer-feedback? x11/nvidia-driver: NVIDIA MEM resource alloc failed | New | 2025-04-28 |
| 286383 | maintainer-feedback? x11/nvidia-driver: Intermittent "xid 16 (Display engine hung)" failures with new driver version 570.124.04 | New | 2025-04-27 |
Commits (368)
Update nVidia driver ports to their most recent versions, bringing assorted bugfixes and support for X.Org xserver ABI 23 (xorg-server version 1.19). PR: 224597fb9ce1062c
Update nVidia driver to the most recent long lived branch version 384.90. PR: 222547 Submitted by: kbowling63c3c00c48
Update nVidia driver to the recent long lived branch version 384.59. PR: 221017e245df6524
Update `x11/nvidia-driver' to version 375.66, which fixes multiple vulnerabilities in the kernel mode layer handler. Security: f52e3a8d-3f7e-11e7-97a9-a0d3c19bfa21 PR: 219465 Submitted by: Andrew Marks292470b9d6
Revision bump of all ports with USE_GL after consolidation of mesa-libs Approved by: swills (mentor) Differential Revision: https://reviews.freebsd.org/D10845b760897dde
- Remove always true/false OSVERSION conditions Approved by: portmgr blanket9c6fa03c85
Update nVidia drivers to their most recent versions: 375.39 (long lived branch); legacy versions: 340.102 and 304.135. PR: 216574, 217341ec0dc75091
Unbreak the build of nvidia-driver-304, which I broke in r433892 [1] While here add += to the SUB_LIST lines so we don't accidently overwrite other SUB_LIST if they should be added later. Reported by: Walter Schwarzenfeld <w.schwarzenfeld@utanet.at> [1]6135b0bf4d
Now that all supported FreeBSD versions support libmap.conf files installed from ports, remove the symlink dance with libGL/libEGL/libgles and the nvidia-driver ports. * Revert libGL/libEGL/libglesv2 ports to normal. * Rename the conflicting libraries from the nvidia-driver ports with a -NVIDIA prefix and install a libmap.conf file to map to these versions. * Remove the special case from Mk/Scripts/qa.sh for libGL and libEGL. * Sadly the symlink dance between nvidia-driver and xorg-server for glx.so need to stay, due to xorg-server opening that file with dlopen(3). Approved by: portmgr@ (mat@ (prio version)) Differential Revision: https://reviews.freebsd.org/D784850a34a0774
Cosmetic change: reword comments to improve consistency and readability: quote type and structure names and drop extra `SVN' word when referring to a particular code revision.4cf2e5863e
Chase `sys/capability.h' rename to `sys/capsicum.h' in FreeBSD src r263232. This is to unbreak the build on recent -CURRENT, where deprecation warning was added in r312758 (FreeBSD src aka base). While here, wrap one overly long line. PR: 2164780ae7bd676b
Update nvidia driver to 375.26 and legacy drivers to 340.101 and 304.134. This brings official support for FreeBSD 11 and Xorg server 1.19. PR: 215370 Submitted by: kbowling Approved by: danfe (maintainer)afa5306901
Add build dependency on linux_base so the build process can run tls_test. This affects which copy of Linux libnvidia-tls gets installed. Also add a run dependency on Linux Xorg libraries needed by some of the installed libraries. PR: 215345976abf2c48
Add libEGL to linux-c7-dri, needed by linux-c7-cairo.e9b092c49f
Allow linux-*-dri and nvidia-driver to coexist.50a574ae1d
Fix `linux.ko' false dependency. Starting with version 358.09, the driver includes a new kernel module, `nvidia-modeset.ko', a driver component that works in conjunction with the `nvidia.ko' kernel module. However, previously the build process did not respect LINUX compile (port) option. Adopt the same way this is done for the core driver. PR: 213222 Submitted by: peter25b015456d
- Replace Mk/bsd.linux-apps.mk and Mk/bsd.linux-rpm.mk with Mk/Uses/linux.mk. - Replace USE_LINUX=yes with USES+=linux and USE_LINUX=(.*) with USES+=linux:\1 in all ports. - Replace USE_LINUX_APPS with USE_LINUX in all ports. - Use INSTALL_SCRIPT instead of INSTALL_PROGRAM to install scripts in some ports. - When USE_LINUX_RPM is defined, simplify the way DISTFILES and EXTRACT_ONLY are def PR: 211645 Exp-run by: antoine Approved by: portmgr (antoine)82a87de90c
x11/nvidia-driver: Update to 367.44 May fix an issue with a dark screen at first Xorg init for some users (reported on GTX960). PR: 212287 Reported by: O. Hartmann <ohartman at zedat.fu-berlin.de> Approved by: danfe, jonathan Differential Revision: https://reviews.freebsd.org/D77232a48d40d01
- Mention that ``nvidia'' (or ``nvidia-modeset'' as of recently) can be put on ``kld_list'' variable in /etc/rc.conf as well (for later loading) - Make s/nvidia/nvidia-modeset/ replacement suggestion more accurate because ``.ko'' suffix is omitted in syntax for both of those files - Improve UPDATING wording for corresponding 20160829 entry accordinglyfe0cd3f637
Fix damage done in r421117: UPDATING entries do not make good `pkg-message' files, especially when there already is existing `files/pkg-message.in'. Unfortunately, this now requires port revision bump in all three ports. Pointy hat to: cem5525c83da3
nvidia-driver: Add a note about nvidia-modeset.ko for 367.35 update Add a note in pkg-message and UPDATING. Correct a pkg-plist sorting mistake while here. Reviewed by: dhw, wblock Approved by: brd (previous version) Differential Revision: https://reviews.freebsd.org/D7700cc645b6420
Properly repomove the patch now that pristine copy was pruned in r421038.3baeb0a674
Remove wrongly created patch in r421027 which had lost existing history.2f4e6ebe58
x11/nvidia-driver: Update to 367.35 * Add needed x11 and xext dependencies Thanks to everyone who submitted patches, tested, and reviewed this update. PR: 201340 Submitted by: Bengt Ahlgren <bengta at sics.se>, Kevin Bowling <kbowling@>, Oleg <zoleg at vusovich.ru>, Tomoaki AOKI <junchoon at dec.sakura.ne.jp>, Ultima <Ultima1252 at gmail.com> Tested by: Jeremy Cox <jeremy.m.cox at gmail.com>, O. Hartmann <ohartman at zedat.fu-berlin.de>, Tomoaki AOKI Approved by: danfe Differential Revision: https://reviews.freebsd.org/D75698286b59e6f
Remove another no-op sed(1) in-place patch: none of the currently supported drivers attempt to allocate fixed width buffer bus_type[] on stack now.3e2640e0aa
Clean up the Makefile after recent changes: put source code and build logic patching closer together and move OPTIONS-related patching thereafter. Non functional.e89df832e5
Deorbit support for nVidia driver legacy versions, part 3: - libnvidia-cfg.so* files are always installed since version 81.074 - Au contraire, libnvidia-wfb.so.1 is not (since version 195.022) - Remove now useless checks for NVVERSIONs before 180.029 and 185.01829 (always false) and after 304.128 (always true) - Unconditionally rename libGLcore -> libnvidia-glcore in pkg-plist (been that way since version 256.053)f75af964ff
Deorbit support for nVidia driver legacy versions by cleaning up in-place patching of the driver(s) source code (part 2): - Only legacy drivers didn't know about new d_mmap() after src r201223, and page queue locking changes after src r207410, r207617, r207644, and r163622; ditto for /return/s/ioctl/sys_&/ after src r225617 - Remove now always true condition when adjusting Linux headers #include's after src r246085 - Contemporary driver versions are now aware of the +1 argument count in vm_map_find() since src r255426 - Do not try to unbreak the build of 173.14.xx series on recent -CURRENT: this legacy driver version was removed by kwm@ in r399180 last year - Remove remaining checks and patching code for outdated NVVERSION values637b7974ea
In sight of upcoming update, deorbit support for legacy versions (part 1): - Make the top comment reflect the current reality - MASTER_SITE_SUBDIR does not have be set later, as it no longer depends on NVVERSION (this also allows to move ONLY_FOR_ARCHS where it belongs) - Delete no longer relevant legacy only versions specific patches; retain EXTRA_PATCHES as this separation would still be needed in new versions - All security patches only touch legacy drivers and thus also deleted - PAE and WBINVD options are now unconditional (independent of NVVERSION) - Drop no longer needed LIB_DEPENDS on libm.so.3 from `misc/compat5x' - Adjust a comment and simplify regexp that had been sitting in my tree - Stop mentioning that this driver does not support PAE-enabled kernels in pkg-message8aa991109b
Update nVidia legacy driver versions to 304.131 and 340.96, respectively, to gain advantage of added support for X.Org X server ABI 20 (xorg-server 1.18). They also fixed a bug that could cause texture corruption in some OpenGL applications when video memory is exhausted by a combination of simultaneously running graphical and compute workloads. PR: 20902715f38239fc
Simplify custom `update-distinfo' convenience target and make it more robust: previous join(1)-based implementation depended on how the file is sorted and often failed to work properly. While here, do not suppress default `.bak' suffix when editing files in-place to make debugging easier, shall it be needed.c44d975f65
Remove unneeded usage of:
- MASTER_SITE_SUBDIR
- ${MASTER_SITES_FOO}
- :DEFAULT (and use a default when appropriate)
Sponsored by: Absolight7f304f0633Remove ${PORTSDIR}/ from dependencies, categories v, w, x, y, and z.
With hat: portmgr
Sponsored by: Absolight72ea7e696bDrop 8 support. With hat: portmgr Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D36947f0f664d7e
Fix a typo for x11/nvidia-driver-304. Spotted by: Lena at lena dot kiev dot ua Approved by: danfe (maintainer, implicit)cd0157ff4c
- Update x11/nvidia-driver to 346.96. - Update x11/nvidia-driver-340 to 340.93. - Update x11/nvidia-driver-304 to 304.128. Approved by: danfe (maintainer)1615ac7b7a
Update NVidia driver long lived branch to version 346.47.84bdb03933
- Move mainstream version to 346.xx (update to 346.35) and create another legacy slave port `x11/nvidia-driver-340'; update top comment accordingly - No longer explicitly advertise brokenness for ${OSVERSION} > 1000041 and ${NVVERSION} <= 71.08615 combination: not only old legacy ports recently had been removed, but frankly users of those old gfx cards should either not be running FreeBSD591510fe07- Update mainstream version to 340.76 - The d_thread_t typedef is a compatibility shim to support FreeBSD 4.X: plans are to remove it in FreeBSD 11.X, so prepare for that in advance PR: 196693 Submitted by: jhb13f6cfec88
x11-servers/xorg-server: Update to 1.14
The X.Org server has been updated to 1.14. The changes it brings are described
in a post on the Graphics team blog:
http://blogs.freebsdish.org/graphics/2014/11/19/xserver-1-14-update-ready/
The most noticable change is the DEVD input device autodetection backend
which is enabled by default, replacing the HAL backend. The keyboard
layout configuration must be migrated from HAL's .fdi files to X.Org
files. The procedure is explained in the post mentionned above.
Several ports were removed with this update, mainly because they are not
compatible with the X.Org server anymore:
o nvidia-driver-71
o nvidia-driver-96
o xf86-input-egalax
o xf86-video-newport
o xf86-video-tga
PR: 155696, 181660, 183478 (partially fixed), 188640, 191331
Differential Revision: https://reviews.freebsd.org/D1337
Submitted by: ak (most of the work on the DEVD backend), dumbbell, kwm,
zeising
Tested by: Many people on freebsd-x11@ and IRC
Reviewed by: kwm, portmgr (antoine)
Approved by: kwm, portmgr (antoine)91293a3505Adjust version check to unbreak the build of 304.xx branch. Reported by: Walter Schwarzenfelda46dd58605
Update NVidia drivers (long lived branch and legacy 304.xx branch) to their most recent versions that have CVE-2014-8298 vulnerability fixed. Security: fdf72a0e-8371-11e4-bc20-001636d274f36e6976f466
Fix libEGL and libGLESv2 conflict between libEGL/libglesv2 and the nvidia-driver port in the same fashion it was done as the conflict with the libGL port. Mesa ports: Add pkg-[de]install scripts to handle the symlinks in the libEGL and libglesv2 port. Move pkg-[de]install scripts of libGL out of files/ Put the real mesa libraries into lib/.mesa so we don't have each port create a directory for it own use. Nvidia-driver: Only apply the libEGL.so and libGLESv2.so alternative install directory if nvidia-driver actually ships them. Copied from PR submitter, since it was much cleaner then my initial attempt. Make pkg-install script check if the nvidia-driver port installed the libEGL/libglesv2 libraries and only then make the symlinks. This should allow the script to work with the slave ports which don't install these libraries. Make the pkg-deinstall script check if the mesa version of the libEGL/libGLESv2 libraries are installed before trying to recreate the symlinks of those ports. PR: 194924 Submitted by: Gerard Seibert <gerard_seibert@outlook.com> Approved by: portmgr (angrybapt)5c3b6d77f9
- Stop trying to adopt cap_rights_t type change in FreeBSD src SVN r255219 as recent driver versions are already account for it; this unbreaks the build for 304.xx branch [*] - Simplify patching for stack buffer overflow in nvidia_sysctl_bus_type(): NVidia really screwed up fixing it since it was reported. Originally, they were sprintf(bus_type, "PCI-E")ing to a 4-character buffer allocat PR: 194866, 194958 [*]126c2c66ba
Fix distinfo for i386 flavor of version 304.123 of the driver. PR: 194890ce17015e99
Update two most recent branches of nVidia drivers to versions 340.46 and 304.123.adfa6917d0
- Finish conversion of NVVERSION to float (left-pad minor < 99 with zero to allow version comparison); now we're safe until minor wraps to 1000 - Augment a comment about NVVERSION and reword PAE option description - Make `update-distinfo' target more robust (by respecting ARCH_SUFX)ee1f9b3e01
Switch NVVERSION (internal variable derived from DISTVERSION) to float, in order to handle version numbers where minor version can exceed 99; integer scheme was breaking NVVERSION monotonicity and comparability in this case. While here, put back the comment removed in r327777 for no apparent reason.d7408d53e6
Avoid using @cwd nuke @dirrm8b1bb2e6bb