I have just updated from 41 to 42 and found that the NVIDIA driver is going to misbehave. The main reason is that Fedora 42 is using by default GCC 15.x and the driver can only compile with version 14.x. After googling a bit I was able to compile and install the NVIDIA driver manually with the latest Linux kernel 6.14.2-300.fc42.x86_64.
I installed the module on my new PC before from the official driver because the kmod-nvidia package was failing during compilation from RPM sources and I was not able to resolve the issue. So I expect you may have a similar setup and already did some configuration changes described in Fedora 42/41/40 NVIDIA Drivers Install Guide.
sudo su -
dnf install gcc14
wget https://us.download.nvidia.com/XFree86/Linux-x86_64/570.144/NVIDIA-Linux-x86_64-570.144.run
./NVIDIA-Linux-x86_64-570.144.run -x
cd NVIDIA-Linux-x86_64-570.144/kernel
export IGNORE_CC_MISMATCH=1
CC="gcc-14" make
make modules_install
modprobe nvidia-drm
lsmod | grep nvidia
cd ../..
(you still need to finish installation of libs, utilities, etc.chmod +x./NVIDIA-Linux-x86_64-570.144.run
./NVIDIA-Linux-x86_64-570.144.run --no-kernel-modules
Ctrl+Alt+F2
sudo killall -s HUP Xorg
Source and few more details: NVIDIA – GCC15 on Fedora 42 Wrecks Compilation – and a Workaround..