Plays a role in the regulation of the cell cycle by phosphorylating the nuclear envelope protein barrier-to-autointegration factor/BAF that is required for disassembly and reassembly, respectively, of the nuclear envelope during mitosis.Under normal physiological conditions, negatively regulates ERK activity along with VHR/DUSP3 phosphatase in the nucleus, causing timely and transient action of ERK. Stress conditions activate CDK5 which phosphorylates VRK3 to increase VHR phosphatase activity and suppress prolonged ERK activation that causes cell death.